1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

-added hints to sprite v/hframes, fixes truncation problem

-removed an error being printed often unnecesarly about missing child
This commit is contained in:
Juan Linietsky
2015-08-29 13:02:56 -03:00
parent 3a59747c62
commit 1fecba6b5b
4 changed files with 8 additions and 6 deletions

View File

@@ -2403,8 +2403,10 @@ void PropertyEditor::update_tree() {
item->set_cell_mode( 1, TreeItem::CELL_MODE_RANGE );
if (p.hint==PROPERTY_HINT_SPRITE_FRAME) {
item->set_range_config(1,0,99999,1);
if (p.hint==PROPERTY_HINT_RANGE || p.hint==PROPERTY_HINT_EXP_RANGE) {
} else if (p.hint==PROPERTY_HINT_RANGE || p.hint==PROPERTY_HINT_EXP_RANGE) {
int c = p.hint_string.get_slice_count(",");
float min=0,max=100,step=1;