mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Move where refreshing shader uniforms happens
This commit is contained in:
@ -211,6 +211,8 @@ class Camera(object):
|
||||
|
||||
# Rendering
|
||||
def capture(self, *mobjects, **kwargs):
|
||||
self.refresh_shader_uniforms()
|
||||
|
||||
shader_infos = it.chain(*[
|
||||
mob.get_shader_info_list()
|
||||
for mob in mobjects
|
||||
|
@ -541,7 +541,6 @@ class Scene(Container):
|
||||
frame.scale(factor, about_point=point)
|
||||
else:
|
||||
frame.shift(-30 * offset)
|
||||
self.camera.refresh_shader_uniforms()
|
||||
|
||||
def on_key_release(self, symbol, modifiers):
|
||||
if chr(symbol) == "z":
|
||||
@ -550,7 +549,6 @@ class Scene(Container):
|
||||
def on_key_press(self, symbol, modifiers):
|
||||
if chr(symbol) == "r":
|
||||
self.camera.frame.restore()
|
||||
self.camera.refresh_shader_uniforms()
|
||||
elif chr(symbol) == "z":
|
||||
self.zoom_on_scroll = True
|
||||
elif chr(symbol) == "q":
|
||||
|
Reference in New Issue
Block a user