Editor: Add prop_physics previews, and fix that def files their model= key
is respected.
This commit is contained in:
parent
99aebfc57b
commit
9cda1adcd4
2 changed files with 5 additions and 1 deletions
|
@ -86,6 +86,7 @@ void construct()
|
||||||
m_keyObservers.insert("angle", AnglesKey::AngleChangedCaller(m_anglesKey));
|
m_keyObservers.insert("angle", AnglesKey::AngleChangedCaller(m_anglesKey));
|
||||||
m_keyObservers.insert("angles", AnglesKey::AnglesChangedCaller(m_anglesKey));
|
m_keyObservers.insert("angles", AnglesKey::AnglesChangedCaller(m_anglesKey));
|
||||||
m_keyObservers.insert("origin", OriginKey::OriginChangedCaller(m_originKey));
|
m_keyObservers.insert("origin", OriginKey::OriginChangedCaller(m_originKey));
|
||||||
|
m_keyObservers.insert("model", SingletonModel::ModelChangedCaller(m_model));
|
||||||
}
|
}
|
||||||
|
|
||||||
// vc 2k5 compiler fix
|
// vc 2k5 compiler fix
|
||||||
|
|
|
@ -52,7 +52,9 @@ inline scene::Node &entity_for_eclass(EntityClass *eclass)
|
||||||
{
|
{
|
||||||
if ( classname_equal(eclass->name(), "prop_dynamic" ) ) {
|
if ( classname_equal(eclass->name(), "prop_dynamic" ) ) {
|
||||||
return New_PropDynamic(eclass);
|
return New_PropDynamic(eclass);
|
||||||
} if ( classname_equal(eclass->name(), "prop_static" ) ) {
|
} else if ( classname_equal(eclass->name(), "prop_static" ) ) {
|
||||||
|
return New_PropStatic(eclass);
|
||||||
|
} else if ( classname_equal(eclass->name(), "prop_physics" ) ) {
|
||||||
return New_PropStatic(eclass);
|
return New_PropStatic(eclass);
|
||||||
} else if (classname_equal(eclass->name(), "light")
|
} else if (classname_equal(eclass->name(), "light")
|
||||||
|| classname_equal(eclass->name(), "lightJunior")) {
|
|| classname_equal(eclass->name(), "lightJunior")) {
|
||||||
|
@ -61,6 +63,7 @@ inline scene::Node &entity_for_eclass(EntityClass *eclass)
|
||||||
|| classname_equal(eclass->name(), "lightJunior")) {
|
|| classname_equal(eclass->name(), "lightJunior")) {
|
||||||
return New_Light(eclass);
|
return New_Light(eclass);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!eclass->fixedsize) {
|
if (!eclass->fixedsize) {
|
||||||
/*if (g_gameType == eGameTypeDoom3) {
|
/*if (g_gameType == eGameTypeDoom3) {
|
||||||
return New_Doom3Group(eclass);
|
return New_Doom3Group(eclass);
|
||||||
|
|
Loading…
Reference in a new issue