Commit graph

1009 commits

Author SHA1 Message Date
Grant Sanderson
40b432a29b Add extended option to Mobject.get_ancestors 2022-04-25 09:54:32 -07:00
Grant Sanderson
e49e4b8373 Speed-ups to Mobject.copy 2022-04-24 13:24:20 -07:00
Grant Sanderson
db884b0a67 Add Mobject.get_ancestors 2022-04-24 10:29:02 -07:00
Grant Sanderson
c3c5717dde Add Mobject.looks_identical 2022-04-23 18:50:45 -07:00
Grant Sanderson
d9475a6860 Remove unnecessary imports 2022-04-23 10:16:48 -07:00
Grant Sanderson
902c2c002d Slight copy refactor 2022-04-23 10:16:35 -07:00
Grant Sanderson
587bc4d0bd Add necessary import 2022-04-23 10:16:23 -07:00
Grant Sanderson
2ba9243067 Merge branch 'master' of github.com:3b1b/manim into video-work 2022-04-23 09:03:53 -07:00
Grant Sanderson
f70e91348c Remove Mobject.interaction_allowed, in favor of using _is_animating for multiple purposes 2022-04-22 23:14:57 -07:00
Grant Sanderson
62289045cc Fix animating Mobject.restore bug 2022-04-22 19:42:47 -07:00
Grant Sanderson
3961005fd7 Rename is_movable to interaction_allowed 2022-04-22 19:17:39 -07:00
Grant Sanderson
59506b89cc Revert to original copying scheme 2022-04-22 19:02:44 -07:00
Grant Sanderson
4d8698a0e8 Add Mobject.deserialize 2022-04-22 11:42:26 -07:00
Grant Sanderson
1b2460f02a Remove refresh_shader_wrapper_id from Mobject.become 2022-04-22 08:14:05 -07:00
YishiMichael
37075590b5
Sort imports 2022-04-22 16:42:45 +08:00
YishiMichael
bf5cec7dba
Revert some files 2022-04-22 15:41:57 +08:00
YishiMichael
f8c8a399c9
Revert some files 2022-04-22 15:31:13 +08:00
YishiMichael
f226aa7314
Merge branch '3b1b:master' into master 2022-04-22 15:02:59 +08:00
Grant Sanderson
f53f202dcd A few small cleanups 2022-04-21 15:00:58 -07:00
Grant Sanderson
9d5e2b32fa Add VHighlight 2022-04-21 14:32:39 -07:00
Grant Sanderson
fe3e10acd2 Updates to copying based on pickle serializing 2022-04-21 14:32:27 -07:00
Grant Sanderson
c04615c4e9 In Mobject.set_uniforms, copy uniforms that are numpy arrays 2022-04-21 14:30:39 -07:00
Grant Sanderson
996d71c49e Add fallback for Mobject copying for unpicklable objects 2022-04-20 22:53:49 -07:00
Grant Sanderson
d24b8ff48f
Merge branch 'master' into master 2022-04-20 22:40:11 -07:00
Grant Sanderson
1b009a4b03 Simplify Mobject.copy to just use pickle serialization 2022-04-20 22:07:10 -07:00
Grant Sanderson
b09e6916dc Remove VMobject.get_highlight 2022-04-20 21:47:12 -07:00
Grant Sanderson
a0c46ef3bf Have set_animating_status recurse over family 2022-04-20 21:46:43 -07:00
Grant Sanderson
4839037503 Update Mobject.make_movable to recurse over family 2022-04-20 21:44:42 -07:00
Grant Sanderson
f636199d9a Add Mobject.get_all_corners 2022-04-20 21:43:16 -07:00
Grant Sanderson
50f5d20cc3 Allow for saving and loading mobjects from file 2022-04-20 21:42:59 -07:00
Grant Sanderson
2dd2fb500e Remove Mobject.get_highlight 2022-04-20 21:42:22 -07:00
Grant Sanderson
c1716895c0 Add Mobject.is_touching 2022-04-20 21:42:07 -07:00
Grant Sanderson
135f68de35 Update Mobject.is_point_touching 2022-04-20 21:41:47 -07:00
YishiMichael
8852921b3d
Refactor double brace parsing 2022-04-18 19:44:32 +08:00
YishiMichael
cbb7e69f68
Refactor LabelledString and relevant classes 2022-04-18 18:47:57 +08:00
YishiMichael
0e0244128c
Refactor LabelledString and relevant classes 2022-04-17 13:57:03 +08:00
YishiMichael
e9298c5faf
Remove sorting key 2022-04-16 16:31:55 +08:00
YishiMichael
4f5173b633
Adjust typing 2022-04-16 15:45:55 +08:00
YishiMichael
58127e7511
import Iterables 2022-04-16 15:34:32 +08:00
YishiMichael
b387bc0c95
Adjust typings 2022-04-16 15:29:23 +08:00
YishiMichael
654da85cf6
Adjust typings 2022-04-16 14:09:59 +08:00
YishiMichael
bc18894040
Remove empty results in LabelledString.select_parts 2022-04-16 13:59:42 +08:00
YishiMichael
ac4620483c
Support flexible selector types 2022-04-16 12:53:43 +08:00
YishiMichael
4690edec3e
Refactor LabelledString 2022-04-16 00:24:55 +08:00
YishiMichael
a1e77b0ce2
Refactor LabelledString 2022-04-15 23:58:06 +08:00
YishiMichael
dbefc3b256
Refactor LabelledString 2022-04-15 23:30:42 +08:00
YishiMichael
14dfd776dc
Refactor LabelledString 2022-04-15 23:26:41 +08:00
YishiMichael
0a810bb4f1
Refactor LabelledString 2022-04-15 22:54:06 +08:00
YishiMichael
020bd87271
Add back base_color attribute 2022-04-15 13:27:50 +08:00
Grant Sanderson
50565fcd7a Change the way changing-vs-static mobjects are tracked
Previously, Camera would keep track of which mobjects are supposed to be "static", so that it could generated their render groups once and not repeat unnecessarily. This had an awkward dependence where Scene would then need to keep track of which mobjects should and should not be considered static.

This update pushes that logic to the Mobject level, where it keeps track internally of whether it's being animated, has an updater, or can be moved around by the mouse.
2022-04-14 16:27:58 -07:00