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
b4c88e06
Commit
b4c88e06
authored
15 years ago
by
Alphax
Browse files
Options
Downloads
Patches
Plain Diff
nif.xml: notes on some unknowns in NiGeometry, fix naming on NiVisData keys
niflib: update to nif.xml, set svn eol-style properties
parent
8ae61a89
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/obj/NiGeometry.h
+3
-3
3 additions, 3 deletions
include/obj/NiGeometry.h
include/obj/NiVisData.h
+1
-1
1 addition, 1 deletion
include/obj/NiVisData.h
src/obj/NiVisData.cpp
+7
-7
7 additions, 7 deletions
src/obj/NiVisData.cpp
with
11 additions
and
11 deletions
include/obj/NiGeometry.h
+
3
−
3
View file @
b4c88e06
...
...
@@ -175,9 +175,9 @@ protected:
mutable
unsigned
int
numMaterials
;
/*! Unknown string. Shader? */
vector
<
IndexString
>
materialName
;
/*! Unknown integer
.
*/
vector
<
unsigned
int
>
materialExtraData
;
/*! Active Material
.
*/
/*! Unknown integer
; often -1. (Is this a link, array index?)
*/
vector
<
int
>
materialExtraData
;
/*! Active Material
; often -1. (Is this a link, array index?)
*/
int
activeMaterial
;
/*! Shader. */
bool
hasShader
;
...
...
This diff is collapsed.
Click to expand it.
include/obj/NiVisData.h
+
1
−
1
View file @
b4c88e06
...
...
@@ -83,7 +83,7 @@ public:
//--END CUSTOM CODE--//
protected:
/*! The number of visibility keys that follow. */
mutable
unsigned
int
num
Vis
Keys
;
mutable
unsigned
int
numKeys
;
/*! The visibility keys. */
vector
<
Key
<
byte
>
>
keys
;
public:
...
...
This diff is collapsed.
Click to expand it.
src/obj/NiVisData.cpp
+
7
−
7
View file @
b4c88e06
...
...
@@ -19,7 +19,7 @@ using namespace Niflib;
//Definition of TYPE constant
const
Type
NiVisData
::
TYPE
(
"NiVisData"
,
&
NiObject
::
TYPE
);
NiVisData
::
NiVisData
()
:
num
Vis
Keys
((
unsigned
int
)
0
)
{
NiVisData
::
NiVisData
()
:
numKeys
((
unsigned
int
)
0
)
{
//--BEGIN CONSTRUCTOR CUSTOM CODE--//
//--END CUSTOM CODE--//
}
...
...
@@ -42,8 +42,8 @@ void NiVisData::Read( istream& in, list<unsigned int> & link_stack, const NifInf
//--END CUSTOM CODE--//
NiObject
::
Read
(
in
,
link_stack
,
info
);
NifStream
(
num
Vis
Keys
,
in
,
info
);
keys
.
resize
(
num
Vis
Keys
);
NifStream
(
numKeys
,
in
,
info
);
keys
.
resize
(
numKeys
);
for
(
unsigned
int
i1
=
0
;
i1
<
keys
.
size
();
i1
++
)
{
NifStream
(
keys
[
i1
],
in
,
info
,
1
);
};
...
...
@@ -57,8 +57,8 @@ void NiVisData::Write( ostream& out, const map<NiObjectRef,unsigned int> & link_
//--END CUSTOM CODE--//
NiObject
::
Write
(
out
,
link_map
,
info
);
num
Vis
Keys
=
(
unsigned
int
)(
keys
.
size
());
NifStream
(
num
Vis
Keys
,
out
,
info
);
numKeys
=
(
unsigned
int
)(
keys
.
size
());
NifStream
(
numKeys
,
out
,
info
);
for
(
unsigned
int
i1
=
0
;
i1
<
keys
.
size
();
i1
++
)
{
NifStream
(
keys
[
i1
],
out
,
info
,
1
);
};
...
...
@@ -74,8 +74,8 @@ std::string NiVisData::asString( bool verbose ) const {
stringstream
out
;
unsigned
int
array_output_count
=
0
;
out
<<
NiObject
::
asString
();
num
Vis
Keys
=
(
unsigned
int
)(
keys
.
size
());
out
<<
" Num
Vis
Keys: "
<<
num
Vis
Keys
<<
endl
;
numKeys
=
(
unsigned
int
)(
keys
.
size
());
out
<<
" Num Keys: "
<<
numKeys
<<
endl
;
array_output_count
=
0
;
for
(
unsigned
int
i1
=
0
;
i1
<
keys
.
size
();
i1
++
)
{
if
(
!
verbose
&&
(
array_output_count
>
MAXARRAYDUMP
)
)
{
...
...
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