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

Some commit after 30 abr 2016 breaks preview animation in godot editor (Win764bit) #7

Open
Ranoller opened this issue Sep 28, 2017 · 8 comments

Comments

@Ranoller
Copy link

Ranoller commented Sep 28, 2017

Godot version: 2.1.4 custom build.

Bulding with plugin code-state in 30 abr 2016 for windows do a plugin that acts equally that your youtube video:
https://www.youtube.com/watch?v=afSObHcj9O8

Building with plugin code-state in 30 may 2016 make a plugin that do not allow to the user to preview animation in editor (only with play-preview, not directly in editor). Nothing changes in screen if you uses "Anim Frame" making unable to do animation-frame directly in godot.

Any of this commits made the regression:

Commits on May 30, 2016
@kestrelm
Updating SCons build for OSX
kestrelm committed on 30 May 2016
c116f8c
@kestrelm
Fixing animation blending bug
kestrelm committed on 30 May 2016
f75573f

@kestrelm
Copy link
Owner

Hello,

Both those changes do not touch any of the display code I think, especially the first one.
However, you can try commenting out the line in f75573f and see if it fixes the issue.

@Ranoller
Copy link
Author

Yes I did that... this is the problem, commenting (manager->SetAutoBlending(true);) fix the problem.

@kestrelm
Copy link
Owner

Ok, you can work with that for now. However, autoBlending must be set to true somewhere in order for the blending to work. The issue is I do not know through their API where to initialize that. LoadJson was the candidate to do it but if it conflicts with the preview system, then we can remove it for now. But I still think that needs to be called.

@kestrelm
Copy link
Owner

Actually, thinking about the problem a bit more, the correct fix is probably to only call the SetAutoBlending(true); when the code is running in the game, not in the editor preview. However, I am unable to find in their docs how to determine which "mode" the plugin is currently in. If anybody can shed some light on this issue that will be great.

@mrezai
Copy link

mrezai commented Oct 28, 2017

Maybe Engine::get_singleton()->is_editor_hint() is what you want

@kestrelm
Copy link
Owner

@mrezai Hello all, this has been patched into the latest creature godot 3 code.

Cheers

@Ranoller
Copy link
Author

Could be great to have this in godot2 module too... Godot3 is not in production-mode and there is middle-travel to arrival.

@Ranoller
Copy link
Author

Ranoller commented Nov 5, 2017

I put this for documenting:

If someone is using this script and want a comfortably workaround to this problem, can compile the godot editor with the module with line 123 commented and compile export templates uncommentig this line. with this workaround you have animations working in editor and exporting.

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

No branches or pull requests

3 participants