Creature_Godot icon indicating copy to clipboard operation
Creature_Godot copied to clipboard

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

Open Ranoller opened this issue 6 years ago • 8 comments

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

Ranoller avatar Sep 28 '17 21:09 Ranoller

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.

kestrelm avatar Sep 28 '17 22:09 kestrelm

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

Ranoller avatar Sep 28 '17 22:09 Ranoller

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 avatar Sep 28 '17 23:09 kestrelm

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.

kestrelm avatar Sep 29 '17 00:09 kestrelm

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

mrezai avatar Oct 28 '17 20:10 mrezai

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

Cheers

kestrelm avatar Oct 28 '17 21:10 kestrelm

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

Ranoller avatar Oct 28 '17 21:10 Ranoller

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.

Ranoller avatar Nov 05 '17 00:11 Ranoller