mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-21 01:06:43 +08:00
fix godot crash when Visible Collision Shapes is enabled (#2761)
This commit is contained in:
parent
5ef9772e7a
commit
5d23a7df19
@ -1216,8 +1216,9 @@ void SpineSprite::draw() {
|
||||
}
|
||||
|
||||
#if TOOLS_ENABLED
|
||||
|
||||
float editor_scale = EditorInterface::get_singleton()->get_editor_scale();
|
||||
float editor_scale = 1.0;
|
||||
if (Engine::get_singleton()->is_editor_hint()) editor_scale = EditorInterface::get_singleton()->get_editor_scale();
|
||||
|
||||
float inverse_zoom = 1 / get_viewport()->get_global_canvas_transform().get_scale().x * editor_scale;
|
||||
Vector<String> hover_text_lines;
|
||||
if (hovered_slot) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user