da1323d1c9
Fix T60366: texture paint slots not updating when editing material.
...
Now always refresh when the material changes. Depsgraph tag moved out
of the refresh function since that gets called on depsgraph update,
which should not trigger a second depsgraph update.
2019-02-28 19:17:16 +01:00
bbe5a95d05
Fix T58875: object paste and append Active Collection property not working.
2019-02-28 13:02:55 +01:00
3d4d7b97c2
Cleanup: style
2019-02-28 12:30:56 +11:00
3ad2d6caef
Cleanup: better names and comments for library ID linking code.
...
Differential Revision: https://developer.blender.org/D4415
2019-02-27 19:37:42 +01:00
168d3fd528
Cleanup: file rename lamp -> light
2019-02-27 12:36:32 +11:00
1079742db9
Cleanup: rename lamp -> light
2019-02-27 12:26:49 +11:00
918941483f
Cleanup: Main struct member names
...
Rename latt to lattice and don't use plural names.
2019-02-27 11:14:41 +11:00
3051e2f4ae
DNA: rename Lamp -> Light
...
- BKE_lamp -> BKE_light
- Main.lamp -> light
2019-02-27 11:03:16 +11:00
4d9697a5a9
Merge branch 'blender2.7'
2019-02-26 20:07:36 +01:00
6b6d1e424c
Cleanup: prevent future issues with ID.tag overflow, clarify somes names.
2019-02-26 20:05:28 +01:00
f76c15efb7
Bevel mod: cleanup flags and extra data.
...
Removed a clnors field unneeded after a recent refactor.
Finished deprecation of flags that haven't been used since pre-bmesh.
2019-02-26 07:35:54 -05:00
186bd4d87b
Cleanup: indentation, trailing space
2019-02-26 14:31:48 +11:00
86c0ee8020
3D View: support for editing cursor rotation
...
Add buttons for editing the cursor rotation as well as rotation modes,
similar to object and pose bones.
2019-02-26 01:37:49 +11:00
893fa59831
readfile: re-enable read on demand for WIN32
...
Revert workaround for T61855. It's likely this was caused by slow seek
for compressed files since the same behavior happens on Linux T61880.
2019-02-25 09:02:19 +11:00
20dfa8aa28
readfile: minor changes to support other compression formats
...
Allow different readers to re-use the file descriptor.
2019-02-24 23:42:05 +11:00
6bab905c9d
readfile: Disable delayed data reading for compressed blend files
...
Seeking gzip files is very slow, disable it.
Resolves T61880
2019-02-24 12:47:48 +11:00
8ed82e82e6
readfile: use regular file access when not a gzip
...
Allows for different behavior w/ compressed files,
will also make it simpler to support other compression types,
see: T56162
2019-02-24 12:41:37 +11:00
519982fd3e
Cleanup: de-duplicate readfile file opening
2019-02-24 10:48:36 +11:00
779860d34e
readfile: disable delayed data reading for WIN32
...
Seeking the file causes slow down on Windows.
Resolves T61855
2019-02-23 09:26:37 +11:00
4da53fc3e3
Cleanup: function wrapping, spelling
2019-02-22 18:37:19 +11:00
6bca694bef
Comments: add doxy sections to readfile.c
...
Some minor changes to arrange code into useful sections too.
2019-02-22 18:23:52 +11:00
7bfb6c242b
readfile: support blend files over 2gb
...
Should work for 4gb+ files too however I wasn't able to test that.
2019-02-22 16:56:22 +11:00
358e07f447
readfile: reduce memory usage at load time
...
Delay loading all DATA sections of the blend file until they're needed.
Loading all data-blocks caused high peak memory usage especially with
libraries - since a lot of data may exist which isn't used directly.
In one test (spring project: 10_010_A.anim.blend),
peaked at ~12.5gig, dropping back to ~2.5gig once loaded.
With this change peaks memory usage reaches ~2.7gig while loading.
Besides this there are some minor gains from not having to read data
from the file-system and we can skip an alloc + memcpy reading data
written with the same version of Blender.
2019-02-22 14:55:18 +11:00
f3e9dff03d
Cleanup: rename seek to file_offset
...
Prepare for seek callback to be added.
2019-02-22 14:05:03 +11:00
bfbf3b9558
Cleanup: make BHeadN private in readfile.c
...
Also add macro for accessing BHeadN from BHead.
2019-02-22 13:47:04 +11:00
9541ce2c26
Missed last commit
...
Harmless but not renamed as intended.
2019-02-22 10:40:51 +11:00
536c3b6578
Cleanup: rename readfile API functions
...
- blo_bhead_first (was blo_firstbhead)
- blo_bhead_next (was blo_nextbhead)
- blo_bhead_prev (was blo_prevbhead)
- blo_bhead_id_name (was bhead_id_name)
- blo_filedata_free (was blo_freefiledata)
- blo_filedata_from_file (was blo_openblenderfile)
- blo_filedata_from_memory (was blo_openblendermemory)
- blo_filedata_from_memfile (was blo_openblendermemory)
2019-02-22 10:31:17 +11:00
98306c31bd
Missed last commit
2019-02-22 09:34:00 +11:00
b2906c2a4a
Cleanup: comments, use bool for 'eof' variable
...
Also remove unused members headerdone, inbuffer & filedes,
use typed enum for file data flags.
2019-02-22 09:29:59 +11:00
38f0d5f75a
Fix T61714, T61712: crash reloading images after recent changes.
...
Now that we are looping over all image users that were previously ignored,
it shows some scene pointers are invalid. Always clear them on load, and
don't keep scene permanently in the image user except for the image editor.
Otherwise the pointer can go out of date.
2019-02-19 15:40:04 +01:00
cba447966e
Fix T61683: Linking the instance of a collection crashes Blender.
...
Do not instance linked object immediately in scene, this was never a
good idea and is doomed to fail nowadays, with complex relations between
objects, collections and scenes.
Instead, this commit refactors a bit linking code to add loose objects
to current scene *after* everything has been imported, and ID pointers
have been properly remapped to new ones - i.e. once new linked data is
supposed to be fully valid, just like we were already doing with
collections.
As a bonus, it means we do not have to pass around scene, view3d etc. to
`BLO_library_link_named_part_ex()` and co.
2019-02-19 13:49:54 +01:00
49c7b34547
Cleanup some Object's bbox code.
...
Now that bbox is in runtime, no need to explicitely clear it when we
call BKE_object_runtime_reset() two lines below.
2019-02-18 17:55:44 +01:00
8f7ae20f79
Cleanup: rename tpageflag to gpuflag, make it purely runtime data.
2019-02-18 16:38:17 +01:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
319b9d6501
DNA: rename dup_* struct members to instance_*
2019-02-17 19:00:54 +11:00
e0e6229176
Cleanup: rename Mesh.edit_btmesh -> edit_mesh
...
When bmesh was in a branch we had both edit_mesh and edit_btmesh,
now there is no reason to use this odd name.
2019-02-17 18:05:18 +11:00
ae2b677dcb
Cleanup: move object bounding-box into runtime struct
2019-02-17 12:52:53 +11:00
2d1c14f036
Cleanup: rename SPACE_IPO -> SPACE_GRAPH
2019-02-16 16:42:11 +11:00
9d09eda0a3
DNA: rename theme space types
...
Follow enum naming convention, use "space_" prefix instead of "t".
2019-02-16 16:30:13 +11:00
ec471a9b1c
DNA: rename SpaceButs -> SpaceProperties
2019-02-16 10:44:15 +11:00
419911b1d1
DNA: rename SpaceIpo -> SpaceGraph
2019-02-16 10:23:40 +11:00
374cbdc63b
DNA: rename SpaceOops -> SpaceOutliner
2019-02-16 09:48:29 +11:00
9a8a5676da
Cleanup: style, duplicate includes
2019-02-13 11:00:07 +11:00
3ec4c2f842
DNA: support versioning structs & struct members
...
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.
2019-02-12 09:38:46 +11:00
452df3f392
Cleanup: comments
2019-02-12 01:51:03 +11:00
1724ff29e0
readfile: skip negative sized thumbnails
...
We may want to use 'TEST' BCode in the future for including data
besides thumbnails. This allows negative values to be used w/o
attempting to load a thumbnail.
2019-02-11 19:09:27 +11:00
5d2b23766b
Link/Append: Instantiate collection rather than objects.
...
When one is indirectly linking collections, better add collection to the
scene, than instantiating its objects into master collection of the
scene. That is much cleaner.
Noted/related to T61141.
2019-02-10 17:15:15 +01:00
439437fa3a
Fix T61141: Append Particle Settings doesn't append the collection properly.
...
ParticleSettings' duplicollection is now a proper refcounting user of
its collection, which will avoid losing it on save/reload.
2019-02-10 17:15:15 +01:00
1bf8551f00
GP: Missing in previous commit
2019-02-09 11:08:17 +01:00
b85d5dd9b1
GP: Init stroke buffer always
...
Related to T61334
This initialization avoid any crash when user saves the file while he is drawing a stroke session.
2019-02-09 10:59:25 +01:00