mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 04:27:53 +00:00
Small bug fix to NumberLine
This commit is contained in:
parent
43f2145508
commit
97c8ea2738
1 changed files with 4 additions and 2 deletions
|
|
@ -141,8 +141,10 @@ class NumberLine(Line):
|
|||
self.decimal_number_config,
|
||||
number_config or {},
|
||||
)
|
||||
scale_val = scale_val or self.number_scale_val
|
||||
direction = direction or self.label_direction
|
||||
if scale_val is None:
|
||||
scale_val = self.number_scale_val
|
||||
if direction is None:
|
||||
direction = self.label_direction
|
||||
buff = buff or self.line_to_number_buff
|
||||
|
||||
num_mob = DecimalNumber(number, **number_config)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue