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
62d881db
Commit
62d881db
authored
14 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
Store block number in NiObject when reading a nif file.
parent
9b809593
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/obj/NiObject.h
+4
-0
4 additions, 0 deletions
include/obj/NiObject.h
src/niflib.cpp
+3
-0
3 additions, 0 deletions
src/niflib.cpp
with
7 additions
and
0 deletions
include/obj/NiObject.h
+
4
−
0
View file @
62d881db
...
...
@@ -88,6 +88,10 @@ public:
NIFLIB_HIDDEN
virtual
void
FixLinks
(
const
map
<
unsigned
int
,
NiObjectRef
>
&
objects
,
list
<
unsigned
int
>
&
link_stack
,
const
NifInfo
&
info
);
/*! NIFLIB_HIDDEN function. For internal use only. */
NIFLIB_HIDDEN
virtual
list
<
NiObjectRef
>
GetRefs
()
const
;
/*! Block number in the nif file. Only set when you read
blocks from the file. */
int
internal_block_number
;
};
//--BEGIN FILE FOOT CUSTOM CODE--//
...
...
This diff is collapsed.
Click to expand it.
src/niflib.cpp
+
3
−
0
View file @
62d881db
...
...
@@ -318,6 +318,9 @@ vector<NiObjectRef> ReadNifList( istream & in, NifInfo * info ) {
//Add object to list
obj_list
.
push_back
(
new_obj
);
//Store block number
new_obj
->
internal_block_number
=
index
;
// Ending position of block in stream
std
::
streampos
endobjpos
=
in
.
tellg
();
...
...
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