Browse Source

Merge pull request #245 from Jrius/mastermod_anim_light

Allow GroupMaster (MsgForwarder) to animate object data (such as lamps)
pull/249/head
Adam Johnson 3 years ago committed by GitHub
parent
commit
81e51c3b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      korman/idprops.py
  2. 2
      korman/properties/modifiers/anim.py

5
korman/idprops.py

@ -119,10 +119,7 @@ class IDPropObjectMixin(IDPropMixin):
def poll_animated_objects(self, value):
if value.animation_data is not None:
if value.animation_data.action is not None:
return True
return False
return value.plasma_object.has_animation_data
def poll_camera_objects(self, value):
return value.type == "CAMERA"

2
korman/properties/modifiers/anim.py

@ -193,7 +193,7 @@ class PlasmaAnimationGroupModifier(ActionModifier, PlasmaModifierProperties):
msg = "Animation Group '{}' specifies an invalid object. Ignoring..."
exporter.report.warn(msg, self.key_name, ident=2)
continue
if child_bo.animation_data is None or child_bo.animation_data.action is None:
if not child_bo.plasma_object.has_animation_data:
msg = "Animation Group '{}' specifies an object '{}' with no valid animation data. Ignoring..."
exporter.report.warn(msg, self.key_name, child_bo.name, indent=2)
continue

Loading…
Cancel
Save