mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-10 07:50:44 +00:00
clean up "Add" menubar categoes on the 3d object side via the following:
SceneObject now defaults to a category of "misc" getCategoryOfClass now checks parent classes for what categories they hold so that variants can inherit categories are in one of a few rough groups and subgroups depending on actual mapper needs/usages
This commit is contained in:
parent
edbb76155b
commit
fbcfe02098
157 changed files with 127 additions and 131 deletions
|
|
@ -318,10 +318,9 @@ struct SceneRayHelper
|
|||
xformedEnd.convolveInverse(ptr->mObjScale);
|
||||
|
||||
RayInfo ri;
|
||||
ri.object = ptr;
|
||||
ri.generateTexCoord = info->generateTexCoord;
|
||||
|
||||
if (mFunc && !mFunc(&ri))
|
||||
if (mFunc && !mFunc(ptr))
|
||||
return false;
|
||||
|
||||
bool result = false;
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ class SceneContainer
|
|||
/// @name Line intersection
|
||||
/// @{
|
||||
|
||||
typedef bool ( *CastRayCallback )( RayInfo* ri );
|
||||
typedef bool ( *CastRayCallback )(SceneObject* object);
|
||||
|
||||
/// Test against collision geometry -- fast.
|
||||
bool castRay( const Point3F &start, const Point3F &end, U32 mask, RayInfo* info, CastRayCallback callback = NULL );
|
||||
|
|
|
|||
|
|
@ -754,6 +754,7 @@ class SceneObject : public NetObject, public ProcessObject
|
|||
static bool _setGameObject(void* object, const char* index, const char* data);
|
||||
|
||||
DECLARE_CONOBJECT( SceneObject );
|
||||
DECLARE_CATEGORY("MISC");
|
||||
private:
|
||||
|
||||
SceneObject( const SceneObject& ); ///< @deprecated disallowed
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ class Path : public GameBase
|
|||
U32 getPathIndex() const;
|
||||
|
||||
DECLARE_CONOBJECT(Path);
|
||||
DECLARE_CATEGORY("Cinematic");
|
||||
static void initPersistFields();
|
||||
DECLARE_CALLBACK(void, onAdd, (SimObjectId ID));
|
||||
};
|
||||
|
|
@ -151,6 +152,7 @@ class Marker : public SceneObject
|
|||
~Marker();
|
||||
|
||||
DECLARE_CONOBJECT(Marker);
|
||||
DECLARE_CATEGORY("Cinematic");
|
||||
static void initPersistFields();
|
||||
void inspectPostApply();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue