Fix more annoying editor janks
This commit is contained in:
parent
95bdff8c37
commit
fc5c2875a9
2 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,8 @@ func set_lit(val):
|
||||||
func refresh_sprite():
|
func refresh_sprite():
|
||||||
var rot = 0
|
var rot = 0
|
||||||
var lit_offset = 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
|
lit_offset = 32
|
||||||
match direction:
|
match direction:
|
||||||
Direction.DOWN:
|
Direction.DOWN:
|
||||||
|
|
|
@ -21,7 +21,7 @@ shape = SubResource( 1 )
|
||||||
[node name="light" type="Sprite" parent="."]
|
[node name="light" type="Sprite" parent="."]
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource( 2 )
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2( 32, 32, 32, 32 )
|
region_rect = Rect2( 32, 0, 32, 32 )
|
||||||
|
|
||||||
[node name="Light2D" type="Light2D" parent="."]
|
[node name="Light2D" type="Light2D" parent="."]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
|
Reference in a new issue