Fix more annoying editor janks

This commit is contained in:
Hamcha 2020-07-10 10:48:19 +02:00
parent 95bdff8c37
commit fc5c2875a9
Signed by: Hamcha
GPG Key ID: 477AFB9A47CD4B7F
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ func set_lit(val):
func refresh_sprite():
var rot = 0
var lit_offset = 0
if not lit or not (manager != null and manager.powered):
var powered = Engine.editor_hint or (manager != null and manager.powered)
if not lit or not powered:
lit_offset = 32
match direction:
Direction.DOWN:

View File

@ -21,7 +21,7 @@ shape = SubResource( 1 )
[node name="light" type="Sprite" parent="."]
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 32, 32, 32, 32 )
region_rect = Rect2( 32, 0, 32, 32 )
[node name="Light2D" type="Light2D" parent="."]
enabled = false