Commit graph

367 commits

Author SHA1 Message Date
Grant Sanderson
fa1080d59a Be sure reverse_points changes data in place 2023-06-10 09:21:32 -07:00
Grant Sanderson
b644bb51de Update submobjects before parents 2023-03-10 11:05:07 -08:00
Grant Sanderson
ad409999dc Small tweak 2023-02-09 15:16:33 -08:00
Grant Sanderson
3bf9e40aba Add more lenient tolerance to Mobject.has_same_shape_as 2023-02-03 17:35:20 -08:00
Grant Sanderson
c4777015fc FIx Mobject.replace_shader_code 2023-02-02 20:47:55 -08:00
Grant Sanderson
7f940fbee4 Change how ShaderWrapper uniforms are handled 2023-02-02 17:45:52 -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
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
47672d3b1e Add checks for setting submobjects with existing list 2023-02-01 22:52:59 -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
04733ac32e Default to fully opaque background rectangle 2023-02-01 11:20:09 -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
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
5952f9ea74 Make sure rgbas will be resized if bigger than Mobject.data 2023-01-31 09:48:23 -08:00
Grant Sanderson
57deab6617 Fix ControlsExample 2023-01-31 09:08:38 -08:00
Grant Sanderson
f8cfcfbc64 Fix EventListener typo 2023-01-31 09:08:24 -08:00
Grant Sanderson
15d8ebb572 Add Mobject.set_shape 2023-01-30 11:53:15 -08:00
Grant Sanderson
ab03a0cfba Add Mobject.set_uniform 2023-01-28 11:35:15 -08:00
Grant Sanderson
05a80f53a7 Make sure depth test calls map to the whole family 2023-01-28 10:37:34 -08:00
Grant Sanderson
1a62314719 Add a "clear" option for Mobjects
This not only sets the submobject list to 0, but removes self from the parent lists
2023-01-28 10:11:22 -08:00
Grant Sanderson
047128a663 Make sure shader_wrapper inherits depth test 2023-01-27 19:27:42 -08:00
Grant Sanderson
d5b1a1725d Allow Mobject.remove to remove any family member, not just immediate submobjects 2023-01-27 15:15:16 -08:00
Grant Sanderson
35c19fe8a7 Edit is_fixed_in_frame 2023-01-27 14:48:31 -08:00
Grant Sanderson
86fb1d82f5 Typo fix 2023-01-26 23:44:33 -08:00
Grant Sanderson
2863672740 Small clean up 2023-01-26 23:05:09 -08:00
Grant Sanderson
eab8edd51d Remove needless list(...) 2023-01-26 22:41:36 -08:00
Grant Sanderson
1bd6a77151 Don't use @stash_mobject_pointers on copy, be more explicit 2023-01-26 20:59:36 -08:00
Grant Sanderson
258bc2256a Provide a check that shader uniforms really need updating before setting value 2023-01-26 20:01:59 -08:00
Grant Sanderson
28c875c2c3 Finish Transforms with a call to Mobject.become 2023-01-26 16:49:13 -08:00
Grant Sanderson
164c9ba754 Use copy in set_data 2023-01-26 16:46:05 -08:00
Grant Sanderson
8ef71bb930 Don't use 'become' for interpolate at alpha = 0 or 1 2023-01-26 16:43:40 -08:00
Grant Sanderson
a8da171adb Make sure a group inherits the fixed_in_frame status of its parts 2023-01-26 15:58:56 -08:00
Grant Sanderson
c6c23a1fe7 Unnecessary refresh_bounding_box 2023-01-26 12:06:13 -08:00
Grant Sanderson
f5cb2bfa52 Check for mismatched keys in uniform interpolation 2023-01-26 12:06:05 -08:00
Grant Sanderson
cb36fda6d7 In interpolate, only update data status if some keys are unlocked 2023-01-25 19:24:19 -08:00
Grant Sanderson
88590e5a05 Remove serializing deepcopy 2023-01-25 19:23:55 -08:00
Grant Sanderson
d2af6a5f4b Keep track of when Mobject data has changed, and used that to determine when ShaderWrapper generates new buffers 2023-01-25 16:43:47 -08:00
Grant Sanderson
424707d035 Move rendering more fully away from Camera to Mobject and ShaderWrapper 2023-01-25 14:13:56 -08:00
Grant Sanderson
2c737ed540 Move most of rendering logic to ShaderWrapper 2023-01-25 13:45:18 -08:00
Grant Sanderson
c94d8fd3b0 Move Texture handling and vao creation outside of Camera 2023-01-25 12:10:39 -08:00