From c22187907e273572c73b867f02e40213e7a9d6e8 Mon Sep 17 00:00:00 2001 From: Garux Date: Sat, 3 Feb 2018 09:03:59 +0300 Subject: [PATCH] * entity inspector -> clear all: keep origin key --- radiant/entityinspector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiant/entityinspector.cpp b/radiant/entityinspector.cpp index 9d3967f1..f298838f 100644 --- a/radiant/entityinspector.cpp +++ b/radiant/entityinspector.cpp @@ -1259,10 +1259,10 @@ static gint EntityProperties_keypress( GtkEntry* widget, GdkEventKey* event, gpo void EntityInspector_clearAllKeyValues(){ UndoableCommand undo( "entityClear" ); - // remove all keys except classname + // remove all keys except classname and origin for ( KeyValues::iterator i = g_selectedKeyValues.begin(); i != g_selectedKeyValues.end(); ++i ) { - if ( strcmp( ( *i ).first.c_str(), "classname" ) != 0 ) { + if ( !string_equal( ( *i ).first.c_str(), "classname" ) && !string_equal( ( *i ).first.c_str(), "origin" ) ) { Scene_EntitySetKeyValue_Selected( ( *i ).first.c_str(), "" ); } }