SConscript: build fails if SETUP=1
GUI: can't use arrow keys to navigate in camera view when capslock is enabled
GUI: screensaver causes: gdkgc-win32.c: line 905 (gdk_win32_hdc_get): assertion failed: (win32_gc->hdc == NULL)
-GUI: error! In camera window:
- - press and release RightMouse
- - press and hold LeftMouse
- - press and release RightMouse
- - press and release RightMouse
- - release LeftMouse
+
FEATURES
}
};
+template<typename Type>
+class ReferenceSet
+{
+ typedef UniqueSet<Type*> Values;
+ Values m_values;
+public:
+ void attach(Type& t)
+ {
+ m_values.insert(&t);
+ }
+ void detach(Type& t)
+ {
+ m_values.erase(&t);
+ }
+ template<typename Functor>
+ void forEach(const Functor& functor)
+ {
+ for(Values::iterator i = m_values.begin(); i != m_values.end(); ++i)
+ {
+ functor(*(*i));
+ }
+ }
+};
+
+class TraversableObserverRelay : public ReferenceSet<scene::Traversable::Observer>, public scene::Traversable::Observer
+{
+public:
+ void insert(scene::Node& node)
+ {
+ forEach(TraversableObserverInsert(node));
+ }
+ void erase(scene::Node& node)
+ {
+ forEach(TraversableObserverErase(node));
+ }
+};
+
#endif
{
Scene_parentSelectedBrushesToEntity(GlobalSceneGraph(), node);
Scene_forEachChildSelectable(SelectableSetSelected(true), instance.path());
+
+ if (g_pGameDescription->mGameType == "doom3")
+ {
+ Node_getEntity(node)->setKeyValue("model", Node_getEntity(node)->getKeyValue("name"));
+ }
}
// tweaking: when right clic dropping a light entity, ask for light value in a custom dialog box