Age | Commit message (Collapse) | Author |
|
|
|
No functional change, this adds LIB definition and args to cmake files.
Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS'
since there are many platforms/configurations that could break when
changing linking order.
Manually add and enable WITHOUT_SORTED_LIBS to try building
without sorted libs (currently fails since all variables are empty).
This check will eventually be removed.
See T46725.
|
|
Use doxy references to function and enums,
also correct some names which became out of sync.
|
|
|
|
|
|
|
|
Ref T63164, there was a hidden bug like this on Windows 32 bit.
|
|
This is just not practical to do for the code as a whole, and having it as an
exception for one specific data structure is not that helpful. This has only
been in the way for me when refactoring code.
|
|
|
|
|
|
Cache the result of DNA_elem_array_size which was being called
for each element when reconstructing each struct.
Also skip padding members during reconstruction.
Gives ~18% overall speedup loading 10_010_A.anim.blend (r3154)
from the spring project.# Please enter the commit message for your changes. Lines starting
Note, this was reverted recently because it caused T62181
Changes to DNA_sdna_patch_struct_member_nr were needed which
caused issues loading old 2.8x files.
|
|
This reverts commit 657205530cc680012734200a8babd6232be5ee92.
This caused an T62181, looking into fix but revert for now.
|
|
Cache the result of DNA_elem_array_size which was being called
for each element when reconstructing each struct.
Also skip padding members during reconstruction.
Gives ~18% overall speedup loading 10_010_A.anim.blend (r3154)
from the spring project.
|
|
|
|
|
|
Use 'size' instead of 'len' to represent the size of data in bytes,
'len' is used for the result of 'strlen' or the length of an array
in some parts of 'makesdna.c' & 'dna_genfile.c'.
Also clarify comments and some variable names, no functional changes.
|
|
|
|
|
|
- BKE_lamp -> BKE_light
- Main.lamp -> light
|
|
|
|
|
|
Was confusing, unrelated to:
colbits, col_mask, col_group, actcol & totcol.
|
|
Resolves a common cause of confusion.
|
|
|
|
|
|
While \file doesn't need an argument, it can't have another doxy
command after it.
|
|
|
|
|
|
Follow enum naming convention, use "space_" prefix instead of "t".
|
|
Fail to build on errors in new names - without this renamed values
would be written to DNA breaking backwards & forwards compatibility.
Note that errors in old names aren't detected.
|
|
Rename for Camera, View3D (also CameraParams & Render not DNA)
|
|
|
|
|
|
|
|
|
|
This allows us to rename struct & struct members in the source code
without changing the file format.
This is useful because the code becomes increasingly confusing when
names such as oops, ipo & dupli aren't used anywhere except DNA headers.
dna_rename_defs.h is used to define renaming operations.
The renaming it's self will be done separately.
|
|
Also sync variable names w/ D4342
|
|
Possible error changing names which are shared between structs.
While the problem doesn't occur at the moment, avoid future problems.
|
|
Use naming conventions from the patch so they match when it's applied.
|
|
Also use doxy sections & remove parens from return values.
|
|
Minor change from D4342
|
|
Rename 'elem_dna' to 'elem_full' to signify it has array/pointer chars.
|
|
Rename old/new to src/dst since renaming happens in both directions
when versioning.
|
|
Currently only a single function was duplicated which isn't so bad,
this change is to allow DNA versioning code to be shared between
dna_genfile.c and makesdna.c.
|
|
Include it since versioning code will need to perform
small string allocations too, which doesn't fit will into
the currently used fixed size buffers.
|
|
|
|
This is only to be used rarely because it's not forwards compatible.
Replace version patching of old 2.80 DNA with a more generic API.
|
|
More direct and readable.
|
|
Also replace intptr_t -> int (no good reason to cast to intptr here).
|
|
Automatic edits failed for indented comment blocks,
removed indentation & adjusted.
|