Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
3963ea04
Commit
3963ea04
authored
19 years ago
by
Shon Ferguson
Browse files
Options
Downloads
Patches
Plain Diff
Made a few fixes as I updated the Maya importer to the changes.
parent
a0fdef2e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NIF_Blocks.cpp
+1
-0
1 addition, 0 deletions
NIF_Blocks.cpp
NIF_Blocks.h
+1
-1
1 addition, 1 deletion
NIF_Blocks.h
niflib.h
+3
-1
3 additions, 1 deletion
niflib.h
with
5 additions
and
2 deletions
NIF_Blocks.cpp
+
1
−
0
View file @
3963ea04
...
@@ -129,6 +129,7 @@ attr_ref ABlock::GetAttr(string attr_name) {
...
@@ -129,6 +129,7 @@ attr_ref ABlock::GetAttr(string attr_name) {
map
<
string
,
attr_ref
>::
iterator
it
;
map
<
string
,
attr_ref
>::
iterator
it
;
it
=
_attr_map
.
find
(
attr_name
);
it
=
_attr_map
.
find
(
attr_name
);
if
(
it
==
_attr_map
.
end
())
{
if
(
it
==
_attr_map
.
end
())
{
//cout << "Requested Attribute does not exist: " << attr_name << endl;
return
attr_ref
(
NULL
);
return
attr_ref
(
NULL
);
}
else
{
}
else
{
return
attr_ref
((
*
it
).
second
);
return
attr_ref
((
*
it
).
second
);
...
...
This diff is collapsed.
Click to expand it.
NIF_Blocks.h
+
1
−
1
View file @
3963ea04
...
@@ -104,7 +104,7 @@ public:
...
@@ -104,7 +104,7 @@ public:
//Name Functions
//Name Functions
virtual
bool
Namable
()
{
return
_namable
;
}
virtual
bool
Namable
()
{
return
_namable
;
}
virtual
void
SetName
(
string
&
name
)
{
_name
=
name
;
}
virtual
void
SetName
(
string
name
)
{
_name
=
name
;
}
virtual
string
GetName
()
{
return
_name
;
}
virtual
string
GetName
()
{
return
_name
;
}
//--Internal Functions--//
//--Internal Functions--//
...
...
This diff is collapsed.
Click to expand it.
niflib.h
+
3
−
1
View file @
3963ea04
...
@@ -52,6 +52,7 @@ using namespace std;
...
@@ -52,6 +52,7 @@ using namespace std;
//--Forward Declarations of Classes & Structs--//
//--Forward Declarations of Classes & Structs--//
class
IAttr
;
class
IAttr
;
class
IBlock
;
class
IBlock
;
class
IShapeData
;
class
ITriShapeData
;
class
ITriShapeData
;
class
ISkinData
;
class
ISkinData
;
class
IKeyframeData
;
class
IKeyframeData
;
...
@@ -131,6 +132,7 @@ unsigned int BlocksInMemory();
...
@@ -131,6 +132,7 @@ unsigned int BlocksInMemory();
//--Query Functions--//
//--Query Functions--//
// These are shorthands for using QueryInterface, and required for scripting languages
// These are shorthands for using QueryInterface, and required for scripting languages
IShapeData
*
QueryShapeData
(
blk_ref
&
block
);
ITriShapeData
*
QueryTriShapeData
(
blk_ref
&
block
);
ITriShapeData
*
QueryTriShapeData
(
blk_ref
&
block
);
ISkinData
*
QuerySkinData
(
blk_ref
&
block
);
ISkinData
*
QuerySkinData
(
blk_ref
&
block
);
INode
*
QueryNode
(
blk_ref
&
block
);
INode
*
QueryNode
(
blk_ref
&
block
);
...
@@ -382,7 +384,7 @@ public:
...
@@ -382,7 +384,7 @@ public:
//Name Functions
//Name Functions
virtual
bool
Namable
()
=
0
;
virtual
bool
Namable
()
=
0
;
virtual
void
SetName
(
string
&
name
)
=
0
;
virtual
void
SetName
(
string
name
)
=
0
;
virtual
string
GetName
()
=
0
;
virtual
string
GetName
()
=
0
;
protected
:
protected
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment