Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
0a6d3d72
Commit
0a6d3d72
authored
5 years ago
by
Damien Picard
Browse files
Options
Downloads
Patches
Plain Diff
animation_animall: workaround for data refresh: T68332 T68666
parent
7e92cba7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
animation_animall.py
+12
-0
12 additions, 0 deletions
animation_animall.py
with
12 additions
and
0 deletions
animation_animall.py
+
12
−
0
View file @
0a6d3d72
...
...
@@ -44,6 +44,7 @@ from bpy.props import (
BoolProperty
,
StringProperty
,
)
from
bpy.app.handlers
import
persistent
# Property Definitions
...
...
@@ -563,6 +564,15 @@ class AnimallAddonPreferences(AddonPreferences):
col
.
prop
(
self
,
"
category
"
,
text
=
""
)
@persistent
def
animall_update_handler
(
scene
):
'''
Force data refresh on frame change.
To be removed when T68666 is fixed, probably.
'''
for
obj
in
scene
.
objects
:
if
obj
.
data
is
not
None
:
obj
.
update_tag
(
refresh
=
{
'
DATA
'
})
def
register
():
bpy
.
utils
.
register_class
(
AnimallProperties
)
bpy
.
types
.
WindowManager
.
animall_properties
=
bpy
.
props
.
PointerProperty
(
type
=
AnimallProperties
)
...
...
@@ -572,6 +582,7 @@ def register():
bpy
.
utils
.
register_class
(
ANIM_OT_clear_animation_animall
)
bpy
.
utils
.
register_class
(
AnimallAddonPreferences
)
update_panel
(
None
,
bpy
.
context
)
bpy
.
app
.
handlers
.
frame_change_post
.
append
(
animall_update_handler
)
def
unregister
():
...
...
@@ -582,6 +593,7 @@ def unregister():
bpy
.
utils
.
unregister_class
(
ANIM_OT_delete_keyframe_animall
)
bpy
.
utils
.
unregister_class
(
ANIM_OT_clear_animation_animall
)
bpy
.
utils
.
unregister_class
(
AnimallAddonPreferences
)
bpy
.
app
.
handlers
.
frame_change_post
.
remove
(
animall_update_handler
)
if
__name__
==
"
__main__
"
:
register
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment