Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix export action name #66

Merged
merged 1 commit into from
Aug 8, 2018

Conversation

Jason0214
Copy link
Collaborator

@Jason0214 Jason0214 commented Aug 6, 2018

fix some bugs brought by #63

  1. fix type bakeup -> backup
  2. give name to baked actions (they default have name 'Action', if multiple action being baked, they will overwrite each other
  3. previously, for object has constraint and no active action, constraint will be baked to an action. currently change to if the object has no animation data animation_data, constraint will be baked to an action

@Jason0214 Jason0214 force-pushed the fix_export_action_name branch 5 times, most recently from 4c0bbd3 to 7fd78b1 Compare August 6, 2018 02:39
# blender would automatically add a '.001' for a name collision
# hacky solution by adding a space to make name different,
# space is ignored in godot animation name
baked_action.name = ' ' + base_action.name
Copy link
Collaborator

@sdfgeoff sdfgeoff Aug 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this mean that you'll get a bunch of identicly named actions in godot's animation window. I think that would be quite a pain to try and use (particuarly if you're trying to trigger those actions from gscript).

Copy link
Collaborator Author

@Jason0214 Jason0214 Aug 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, exported actions has the same number of actions you have in blender. The baked action is always new created because I found if baking into the original action, blender would not set the original action back when addon finish exporting. So this new created action is actually a temporal one and would be removed after it get evaluated and exported

@Jason0214 Jason0214 force-pushed the fix_export_action_name branch 4 times, most recently from f9767f6 to acec5af Compare August 6, 2018 09:24
@Jason0214 Jason0214 force-pushed the fix_export_action_name branch from acec5af to b0b2cbc Compare August 6, 2018 09:28
@sdfgeoff sdfgeoff merged commit 82290bb into godotengine:master Aug 8, 2018
@Jason0214 Jason0214 deleted the fix_export_action_name branch August 10, 2018 20:32
Ben1138 pushed a commit to Ben1138/godot-blender-exporter that referenced this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants