Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-19Fix T61714, T61712: crash reloading images after recent changes.Brecht Van Lommel
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-19Fix T61683: Linking the instance of a collection crashes Blender.Bastien Montagne
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-18Cleanup some Object's bbox code.Bastien Montagne
Now that bbox is in runtime, no need to explicitely clear it when we call BKE_object_runtime_reset() two lines below.
2019-02-18ID management: use FOREACH_MAIN_ID in some places.Bastien Montagne
2019-02-18Cleanup: rename tpageflag to gpuflag, make it purely runtime data.Brecht Van Lommel
2019-02-18Markers: Make marker lines in sequencer and graph editor optionalJacques Lucke
- Makes it possible to show a vertical line for every marker in the graph editor. - Makes the marker line visiblity optional in the sequencer and graph editor. Request from @hjalti. Reviewers: brecht Differential Revision: https://developer.blender.org/D4348
2019-02-18DNA: rename Object.size -> scaleCampbell Barton
Resolves a common cause of confusion.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-17DNA: rename dup_* struct members to instance_*Campbell Barton
2019-02-17Cleanup: rename Mesh.edit_btmesh -> edit_meshCampbell Barton
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-17Cleanup: move object bounding-box into runtime structCampbell Barton
2019-02-16Cleanup: rename SPACE_IPO -> SPACE_GRAPHCampbell Barton
2019-02-16DNA: rename theme space typesCampbell Barton
Follow enum naming convention, use "space_" prefix instead of "t".
2019-02-16DNA: rename SpaceButs -> SpacePropertiesCampbell Barton
2019-02-16DNA: rename SpaceIpo -> SpaceGraphCampbell Barton
2019-02-16DNA: rename SpaceOops -> SpaceOutlinerCampbell Barton
2019-02-16DNA: support DNA type & name aliasesCampbell Barton
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.
2019-02-15Cleanup: sync minor changes from D4342Campbell Barton
Use naming conventions from the patch so they match when it's applied.
2019-02-14Fix T61520: Incorrect assignment of layers to compositor nodes in 2.8 when ↵Philipp Oeser
reading 2.79 .blend Reviewers: brecht Maniphest Tasks: T61520 Differential Revision: https://developer.blender.org/D4352
2019-02-13Cleanup: style, duplicate includesCampbell Barton
2019-02-12DNA: support versioning structs & struct membersCampbell Barton
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-11Cleanup: commentsCampbell Barton
2019-02-11readfile: skip negative sized thumbnailsCampbell Barton
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-11Preferences: remove tweak/drag threshold distinctionCampbell Barton
Currently the preferences have both tweak and drag threshold, this is confusing because most actions users would consider dragging use the 'tweak' setting. Now one drag threshold is used for both, with a maximum limit of half the button unit-size in case of dragging UI elements.
2019-02-11Cleanup: use 'struct Main' in headerCampbell Barton
Causes errors including in some cases.
2019-02-11DNA: remove Object.display structCampbell Barton
We have a display flag already, use it instead. Object.display is kept in RNA, exposed via a nested struct, we can move other display options there.
2019-02-10Link/Append: Instantiate collection rather than objects.Bastien Montagne
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-10Fix T61141: Append Particle Settings doesn't append the collection properly.Bastien Montagne
ParticleSettings' duplicollection is now a proper refcounting user of its collection, which will avoid losing it on save/reload.
2019-02-10Cleanup: unused struct memberCampbell Barton
Also replace intptr_t -> int (no good reason to cast to intptr here).
2019-02-09GP: Missing in previous commitAntonioya
2019-02-09GP: Init stroke buffer alwaysAntonioya
Related to T61334 This initialization avoid any crash when user saves the file while he is drawing a stroke session.
2019-02-08Fix (unreported) crash when undoing after ID deletion.Bastien Montagne
Yes, we do can undo an ID deletion now. However, this requires extra care in UI 'remapping' to new IDs step (when undoing, we do not fully reload the UI from saved .blend). Otherwise, new UI (i.e. one from saved .blend file) might reference IDs that where freed in old bmain (the one before the undo), we cannot use those to get ID name then, that would be a nasty use-after-free! To prevent this, we generate a GSet of all valid ID pointers at that time (i.e. those found in both old and new Main's), and ensure any ID we try to remap by its name is in that GSet. Otherwise, there is no possible remapping, just return NULL.
2019-02-08Fix missing NULL check in recent version patchCampbell Barton
2019-02-08Correct error in last commitCampbell Barton
2019-02-08Cleanup: clear deprecated flagsCampbell Barton
2019-02-07Fix T59587: Hair dynamics works different when opened in 2.8Sergey Sharybin
Is a missing do-verisoning code in e3d31b8dfbd. Unfortunately, at this point it is rather tricky to tell old and new hair dynamics modifiers apart. Probably easier to accept possible breackage of the files which were created in 2.7 and saved during 2.8 which had incomplete do-version code.
2019-02-06Cleanup: Remove deprecated ghosting codeJacques Lucke
Most of this code is deprecated for many years already and does not work at all in Blender 2.8. Reviewers: brecht, aligorith Differential Revision: https://developer.blender.org/D4271
2019-02-06Fix T61136: Header alignment preference has no effectCampbell Barton
Users expect this to apply to existing files, adjust this to apply on load, defaults to off.
2019-02-06Cleanup: remove unused toolbox delay preferencesCampbell Barton
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-05Fix new EEVEE bloom / motion blur defaults not being applied to startup.blend.Brecht Van Lommel
2019-02-05Cleanup: remove contributors for CMake filesCampbell Barton
Following removal from C source code. See: 8c68ed6df16d8893
2019-02-04Fix T61172: Crash in texture paint undo/redoCampbell Barton
Mixing texture paint undo w/ memfile undo was crashing. The gputextures and render result are written to the FileData.imamap but weren't read back.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-02Cleanup: match logic for merging G.f & G.fileflags on loadCampbell Barton
2019-02-01Color management: change view transform for color pickers and display modes.Brecht Van Lommel
* Use simple default view transform for color pickers, as Filmic does not work well for all types of colors. We better handle this with an option and tagging of colors as emissive or albedo like. * For solid/workbench we also no longer use Filmic, as there is not enough contrast and it's not really needed since this is not physically based lighting. * For lookdev always take into account the view transform and look. Other view settings like exposure are only taken into account if scene lighting is used, since these are often dependent on scene light intensity. Fixes T61022, T57649, T59363.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-31Depsgraph: remove features incompatible with new system.Brecht Van Lommel
Some features are incompatible with multithreading and reliable evaluation of dependencies. We are now removing them as part of a bigger cleanup to fix bugs in keyframing and invalid animation evaluations. * Dupliframes have been removed. This was a hack added before there were more powerful features like the array modifier. * Slow parent has been removed, never worked in 2.8. It was always unreliable for use in production due to depending on whatever frame was previously evaluated, which was not always the previous frame. * Particle instanced objects used to have their transform evaluated at the particle time. Now it always gets the current time transform. * Boids can no longer do predictive avoidance of force field objects, but still for other particles. Differential Revision: https://developer.blender.org/D4274
2019-01-30Fix T60378: All armatures reset positions on linked collection when ctrl+z ↵Bastien Montagne
used on anything. Issue actually exists since ages, probably 2.7x update system forced all armature proxies to be fully refreshed after an undo? In any case, proxy_from should only be reset for 'local' proxies (i.e. directly linked datablocks), not for linked proxies...
2019-01-30Versioning: add renaming utility functionCampbell Barton
Avoids accidents creating duplicate names. Also ensure screens are sorted on rename.