Commit graph

1530 commits

Author SHA1 Message Date
Grant Sanderson
c4777015fc FIx Mobject.replace_shader_code 2023-02-02 20:47:55 -08:00
Grant Sanderson
88959df7a8 Use set_color instead of set_rgba_array in vector_field 2023-02-02 18:24:12 -08:00
Grant Sanderson
3d0fe27c55 Simplify VMobject.set_rgba_array 2023-02-02 18:23:41 -08:00
Grant Sanderson
4629e08769 Ensure joint_products are computed at both the start and end of an animation 2023-02-02 18:17:12 -08:00
Grant Sanderson
7f940fbee4 Change how ShaderWrapper uniforms are handled 2023-02-02 17:45:52 -08:00
Grant Sanderson
1dcc678b2f Make sure animating a VGroup uniforms will have an effect 2023-02-02 16:18:09 -08:00
Grant Sanderson
ad2e7144b4 Lock uniform keys, the same way data keys are 2023-02-02 16:17:26 -08:00
Grant Sanderson
e36719a21b Use resize_points in Mobject.set_data 2023-02-02 15:37:10 -08:00
Grant Sanderson
c4d698a169 Have Transform only copy target_mobject if it must 2023-02-02 15:36:58 -08:00
Grant Sanderson
0e60b124eb Only compute const_data_keys for unlocked data 2023-02-02 15:02:55 -08:00
Grant Sanderson
63dbe3b23f More direct check for family_members_with_points 2023-02-02 14:32:55 -08:00
Grant Sanderson
bd89056c8e Only recalculate outer_vert_indices when points are resized 2023-02-02 14:29:37 -08:00
Grant Sanderson
b9d6dcd67d Save _has_fill and _has_stroke to prevent unnecessary recalculation 2023-02-02 14:26:08 -08:00
Grant Sanderson
4ec2e8b0c5 Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 11:22:58 -08:00
Grant Sanderson
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
Grant Sanderson
b499caaa45 Have SVG subdivide intersections if winding fill is not a default 2023-02-02 10:40:09 -08:00
Grant Sanderson
9c03a40d68 Account for unnecessary calls to use_winding_fill 2023-02-02 10:39:30 -08:00
Grant Sanderson
47672d3b1e Add checks for setting submobjects with existing list 2023-02-01 22:52:59 -08:00
Grant Sanderson
f4a6f99b54 Check _use_winding_fill on the submobject level 2023-02-01 20:11:50 -08:00
Grant Sanderson
40bcb7e0f3 Accept list of Vect3 as an input to Mobject.set_points 2023-02-01 13:02:56 -08:00
Grant Sanderson
9ef14c7260 Change default h_buff on Matrix 2023-02-01 11:38:54 -08:00
Grant Sanderson
c062592684 Draw border width behind fill 2023-02-01 11:36:54 -08:00
Grant Sanderson
280090a7c9 Small reorganization to VMobject.get_shader_wrapper_list, and default to fill border being drawn up front 2023-02-01 11:24:46 -08:00
Grant Sanderson
04733ac32e Default to fully opaque background rectangle 2023-02-01 11:20:09 -08:00
Grant Sanderson
c8d1ee5c88 No longer any need for specialized invisible_copy 2023-01-31 20:16:05 -08:00
Grant Sanderson
f858a439dd Make alignment between VMobjects conducive to smoother interpolation 2023-01-31 20:15:48 -08:00
Grant Sanderson
93e65fa3e7 Prevent needless extra copying in Mobject.copy 2023-01-31 15:37:23 -08:00
Grant Sanderson
077f264890 In Mobject.become, match needs_new_bounding_box status 2023-01-31 14:48:26 -08:00
Grant Sanderson
1e46847a69 Use Iterator type for Mobject.__iter__ 2023-01-31 14:32:32 -08:00
Grant Sanderson
4c327cd5d2 Merge branch 'add-self-type' into video-work 2023-01-31 14:26:31 -08:00
Grant Sanderson
015a7487e7 Remove stray import 2023-01-31 14:20:40 -08:00
Grant Sanderson
468fdf9003 Add Self type to value_tracker.py 2023-01-31 14:19:58 -08:00
Grant Sanderson
031adda503 Small fixes to three_dimensions.py 2023-01-31 14:19:24 -08:00
Grant Sanderson
0452012d54 Add Self type to shape_matchers.py 2023-01-31 14:18:02 -08:00
Grant Sanderson
576d8c996b Add Self type to numbers.py 2023-01-31 14:16:15 -08:00
Grant Sanderson
74a11bb05c Add Self type to matrix.py 2023-01-31 14:13:47 -08:00
Grant Sanderson
6a42ef846a Add Self type to geometry.py 2023-01-31 14:12:41 -08:00
Grant Sanderson
da6875ca55 Add Self type to coordinate_systems.py 2023-01-31 14:08:22 -08:00
Grant Sanderson
d8c21ff7aa Add Self type to changing.py 2023-01-31 14:08:12 -08:00
Grant Sanderson
af585ca3a1 Add Self type to dot_cloud.py and point_cloud_mobject.py 2023-01-31 13:49:48 -08:00
Grant Sanderson
3779577d9f Add Self type to surface.py 2023-01-31 13:47:25 -08:00
Grant Sanderson
b58224f6c8 Add Self type to vectorized_mobject.py 2023-01-31 13:43:54 -08:00
Grant Sanderson
50343e9629 Add Self type to mobject.py 2023-01-31 13:31:48 -08:00
Grant Sanderson
a4d9b101de Whoops, make sure deepcopy actually returns 2023-01-31 12:53:25 -08:00
Grant Sanderson
60aae748a7 Make sure animations will trigger a refresh for joint products 2023-01-31 12:49:02 -08:00
Grant Sanderson
2d0bdfbdb6 Merge branch 'glitch-fix' into video-work 2023-01-31 11:59:54 -08:00
Grant Sanderson
9e5fca6750 Merge branch 'type-error-fix' into video-work 2023-01-31 11:58:09 -08:00
Grant Sanderson
2cbad30f45 Change VMobject rendering mode to TRIANGLES
And set indices appropriately when reading in to the ShaderWrapper
2023-01-31 11:45:53 -08:00
Grant Sanderson
5952f9ea74 Make sure rgbas will be resized if bigger than Mobject.data 2023-01-31 09:48:23 -08:00
Grant Sanderson
f2d71e6521 Don't rotate Laptop into place 2023-01-31 09:20:05 -08:00