blender.git
12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 15:08:55 +0000 (17:08 +0200)]
Merge branch 'master' into blender2.8

12 months agoWM: add support for drag events
Campbell Barton [Thu, 7 Jun 2018 15:05:49 +0000 (17:05 +0200)]
WM: add support for drag events

This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 14:53:31 +0000 (16:53 +0200)]
Merge branch 'master' into blender2.8

12 months agoFix key repeat events resetting the click timer
Campbell Barton [Thu, 7 Jun 2018 14:51:03 +0000 (16:51 +0200)]
Fix key repeat events resetting the click timer

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 14:45:10 +0000 (16:45 +0200)]
Merge branch 'master' into blender2.8

12 months agoCleanup: trailing space for windowmanager
Campbell Barton [Thu, 7 Jun 2018 14:43:52 +0000 (16:43 +0200)]
Cleanup: trailing space for windowmanager

12 months agoDraw: Fix crash when tryign to get procedural textures with modifier disabled
Sergey Sharybin [Thu, 7 Jun 2018 14:38:52 +0000 (16:38 +0200)]
Draw: Fix crash when tryign to get procedural textures with modifier disabled

Maybe disabled modifier check should be done higher in the call hierarchy.

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 14:32:40 +0000 (16:32 +0200)]
Merge branch 'master' into blender2.8

12 months agoFix T55126: COW problem: there is an active object even if unselectable
Sergey Sharybin [Thu, 7 Jun 2018 14:30:19 +0000 (16:30 +0200)]
Fix T55126: COW problem: there is an active object even if unselectable

12 months agoWM: check for release instead of not pressed
Campbell Barton [Thu, 7 Jun 2018 14:19:59 +0000 (16:19 +0200)]
WM: check for release instead of not pressed

Makes reasoning about events more predictable.

12 months agoCleanup: typo.
Bastien Montagne [Thu, 7 Jun 2018 14:02:55 +0000 (16:02 +0200)]
Cleanup: typo.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 7 Jun 2018 13:41:57 +0000 (15:41 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/transform/transform_generics.c

12 months agoFix crash due to missing init of new bAnimContext bmain member in transform code.
Bastien Montagne [Thu, 7 Jun 2018 13:38:31 +0000 (15:38 +0200)]
Fix crash due to missing init of new bAnimContext bmain member in transform code.

From own previous G.main-busting commit.

12 months agoFix sculpt mode undo (COW update needed)
Campbell Barton [Thu, 7 Jun 2018 13:15:54 +0000 (15:15 +0200)]
Fix sculpt mode undo (COW update needed)

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 12:58:57 +0000 (14:58 +0200)]
Merge branch 'master' into blender2.8

12 months agoFix double free in dyntopo-sculpt mode undo
Campbell Barton [Thu, 7 Jun 2018 12:54:09 +0000 (14:54 +0200)]
Fix double free in dyntopo-sculpt mode undo

12 months agoWireframe: Frustum cull them.
Clément Foucault [Thu, 7 Jun 2018 12:49:54 +0000 (14:49 +0200)]
Wireframe: Frustum cull them.

12 months agoDepsgraph: Ensure collections are up to date after modifications
Sergey Sharybin [Thu, 7 Jun 2018 12:39:58 +0000 (14:39 +0200)]
Depsgraph: Ensure collections are up to date after modifications

Before that copied collection in copy-on-write were running out
of sync with original ones. This was causing crash with the
following scenario:

- Delete some objects from scene
- Add particle system to an object
- Change particle mode to Hair

Thanks Dalai for debug session! Pair programming ftw!

12 months agoDepsgraph: Use more proper relations for scene relation
Sergey Sharybin [Thu, 7 Jun 2018 10:57:09 +0000 (12:57 +0200)]
Depsgraph: Use more proper relations for scene relation

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 11:41:32 +0000 (13:41 +0200)]
Merge branch 'master' into blender2.8

12 months agoFix sculpt assert on initialization
Campbell Barton [Thu, 7 Jun 2018 11:38:46 +0000 (13:38 +0200)]
Fix sculpt assert on initialization

12 months agoArmature: Fix flickering outline on planar custom bones.
Clément Foucault [Thu, 7 Jun 2018 11:38:10 +0000 (13:38 +0200)]
Armature: Fix flickering outline on planar custom bones.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 7 Jun 2018 11:04:16 +0000 (13:04 +0200)]
Merge branch 'master' into blender2.8

 Conflicts:
source/blender/editors/animation/anim_deps.c
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/armature/pose_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/gpencil/gpencil_convert.c
source/blender/editors/include/ED_anim_api.h
source/blender/editors/include/ED_keyframing.h
source/blender/editors/interface/interface_anim.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/transform/transform_conversions.c
source/blender/makesrna/intern/rna_armature.c
source/blender/makesrna/intern/rna_pose.c
source/blender/python/intern/bpy_rna_anim.c
source/blenderplayer/bad_level_call_stubs/stubs.c
source/gameengine/Converter/KX_BlenderSceneConverter.cpp

12 months agoArmature: Fix missing loose edges on custom bone shapes.
Clément Foucault [Thu, 7 Jun 2018 10:58:14 +0000 (12:58 +0200)]
Armature: Fix missing loose edges on custom bone shapes.

12 months agoFix T55062: Depsgraph: Crash with COW with EEVEE viewport
Dalai Felinto [Thu, 7 Jun 2018 10:47:16 +0000 (12:47 +0200)]
Fix T55062: Depsgraph: Crash with COW with EEVEE viewport

We now remove the shader for every update.

So at the moment the whole point of UBO (Uniform Buffer Objects) is that they
are more efficient than individual uniforms.

Next steps is a harmless refactor to stopping UBO from referring to original
data in the UBO, and simply copying it.

It would also be interesting to make the final shader more granular as far as
the library and required functions are concerned. Even if this doesn't impact
performance, it should give us smaller easy to debug shaders
(a simple shader now has > 5k lines!).

If performance for animated values is measureable slower after this commit we
can port the shader creation CPU side to the depsgraph - localizing the tree,
hashing, lookup, ...

Additionally we can stick to update the UBO when the material changes but not
its topology. This is very trick because of localized trees. So we will only
re-visit this if profiling hints at any benefit from it.

12 months agoCleanup: remove moar G.main usages.
Bastien Montagne [Thu, 7 Jun 2018 10:47:00 +0000 (12:47 +0200)]
Cleanup: remove moar G.main usages.

Notes:
* Really need to address RNA setters case, end up adding way too much
G.main here these days... :/
* Added Main pointer into bAnimContext, helps a lot in anim code ;)

12 months agoFixed deadlock on viewlayer update when there are drivers
Sybren A. Stüvel [Thu, 7 Jun 2018 10:37:48 +0000 (12:37 +0200)]
Fixed deadlock on viewlayer update when there are drivers

When calling the bpy.ops.poselib.apply_pose() operator from Python, Blender
would deadlock when the rig has drivers.

Similar BPy_{BEGIN,END}_ALLOW_THREADS calls were already in place in the
rna_Scene_update_tagged() function.

12 months agoRename "Viewport Display SSAO" sub-panel name to Screen Space Ambient Occlusion
Pablo Vazquez [Thu, 7 Jun 2018 10:08:32 +0000 (12:08 +0200)]
Rename "Viewport Display SSAO" sub-panel name to Screen Space Ambient Occlusion

Since it is already a sub-panel of Viewport Display anyway

12 months agoGPUPass: Refactor gpupass caching system to allow fast gpumaterial creation.
Clément Foucault [Thu, 7 Jun 2018 09:58:15 +0000 (11:58 +0200)]
GPUPass: Refactor gpupass caching system to allow fast gpumaterial creation.

This is part of the work needed to refactor the material parameters update.

Now the gpupass cache is polled before adding the gpumaterial to the
deferred compilation queue.

We store gpupasses in a single linked list grouped based on their hashes.
This is not the most efficient way but it can be improved upon later.

12 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 7 Jun 2018 10:01:09 +0000 (12:01 +0200)]
Merge branch 'master' into blender2.8

12 months agoRevert "Cycles: Cleanup: Don't use return on function returning void"
Sergey Sharybin [Thu, 7 Jun 2018 09:57:57 +0000 (11:57 +0200)]
Revert "Cycles: Cleanup: Don't use return on function returning void"

Not sure why exactly it is called a cleanup, the code was much more clear
and robust against possible missing return statements which are MANDATORY.

Missing return statement will:

- Cause two different BVH traversals to be run.

  Not is happening currently, but if more BVH layouts are added, it will
  become a problem.

- It is already causing assert() statements to fail, since functions are
  no longer returning when they are supposed to.

If there is any measurable reason to keep this change, let me know.
Otherwise just stick to reliable/tested/robust code.

This reverts commit ba65f7093b39a8e5f1fb869cbc347fb810a05ab9.

12 months agoParticle mode: Support children drawing
Sergey Sharybin [Thu, 7 Jun 2018 09:25:13 +0000 (11:25 +0200)]
Particle mode: Support children drawing

The issue is that children drawing is done by object mode,
which operates with data from evaluated context. But that
data needs edit mode's cache to be properly updated first.

12 months agoDraw: Don't take cache existence into account for draw type
Sergey Sharybin [Thu, 7 Jun 2018 08:15:10 +0000 (10:15 +0200)]
Draw: Don't take cache existence into account for draw type

12 months agoDraw: Use proper continue when psys is disabled
Sergey Sharybin [Thu, 7 Jun 2018 08:12:47 +0000 (10:12 +0200)]
Draw: Use proper continue when psys is disabled

12 months agoParticle edit: Simplify code by benefiting from single edit context
Sergey Sharybin [Wed, 6 Jun 2018 13:48:30 +0000 (15:48 +0200)]
Particle edit: Simplify code by benefiting from single edit context

Makes ADD brush to work.

At some point children particles draw got broken, children are not
visible for until first stroke is done. Still looking into it.

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 7 Jun 2018 09:22:11 +0000 (11:22 +0200)]
Merge branch 'master' into blender2.8

 Conflicts:
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/collada/DocumentExporter.h
source/blender/collada/SceneExporter.cpp
source/blender/collada/SceneExporter.h
source/blender/collada/collada.cpp
source/blender/collada/collada.h
source/blender/editors/armature/armature_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/include/ED_armature.h
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_screen.h
source/blender/editors/io/io_collada.c
source/blender/editors/object/object_transform.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_window.c
source/blenderplayer/bad_level_call_stubs/stubs.c

12 months agoCleanup: Nuke moar G.main usages...
Bastien Montagne [Wed, 6 Jun 2018 13:50:24 +0000 (15:50 +0200)]
Cleanup: Nuke moar G.main usages...

12 months agoMinor comment on possible TODO while validating paint ops for CoW...
Bastien Montagne [Thu, 7 Jun 2018 08:58:52 +0000 (10:58 +0200)]
Minor comment on possible TODO while validating paint ops for CoW...

12 months agoAlembic export: CoW/Depsgraph fixes
Sybren A. Stüvel [Wed, 6 Jun 2018 13:43:10 +0000 (15:43 +0200)]
Alembic export: CoW/Depsgraph fixes

12 months agoAlembic export: port DerivedMesh → Mesh
Sybren A. Stüvel [Wed, 6 Jun 2018 12:16:44 +0000 (14:16 +0200)]
Alembic export: port DerivedMesh → Mesh

12 months agoAlembic import: port DerivedMesh → Mesh
Sybren A. Stüvel [Wed, 6 Jun 2018 09:06:11 +0000 (11:06 +0200)]
Alembic import: port DerivedMesh → Mesh

12 months agoBone selection: user control contrast
Jeroen Bakker [Thu, 7 Jun 2018 07:18:57 +0000 (09:18 +0200)]
Bone selection: user control contrast

Experiment: let the user be in control of the alpha channel as some rigs
are hard too see during bone selection. Especially rigs that were
designed for 2.79 wireframe mode.

12 months agoWorkbench: respect the duplication visibility flag
Jeroen Bakker [Thu, 7 Jun 2018 06:25:22 +0000 (08:25 +0200)]
Workbench: respect the duplication visibility flag

12 months agoFix T55348: Renaming a marker can't cancel
Campbell Barton [Thu, 7 Jun 2018 06:54:47 +0000 (08:54 +0200)]
Fix T55348: Renaming a marker can't cancel

Regression in a14005c070a1f

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 06:15:11 +0000 (08:15 +0200)]
Merge branch 'master' into blender2.8

12 months agoPython API: Initial 'imbuf' API
Campbell Barton [Thu, 7 Jun 2018 05:41:49 +0000 (07:41 +0200)]
Python API: Initial 'imbuf' API

Support only basic operations new/load/write & resize.

Add now so we can extend as needed & more easily accept patches.

12 months agoCleanup: style
Campbell Barton [Wed, 6 Jun 2018 20:17:06 +0000 (22:17 +0200)]
Cleanup: style

12 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 6 Jun 2018 17:52:20 +0000 (19:52 +0200)]
Merge branch 'master' into blender2.8

12 months agoFix BLI_ASSERT_UNIT macro w/ non-finite numbers
Campbell Barton [Wed, 6 Jun 2018 17:49:27 +0000 (19:49 +0200)]
Fix BLI_ASSERT_UNIT macro w/ non-finite numbers

12 months agoUI: NLA: Influence should be a factor (RNA)
Aaron Carlisle [Wed, 6 Jun 2018 16:00:04 +0000 (12:00 -0400)]
UI: NLA: Influence should be a factor (RNA)

12 months agoFix broken auto-keying after copy/paste of poses.
Bastien Montagne [Wed, 6 Jun 2018 15:17:08 +0000 (17:17 +0200)]
Fix broken auto-keying after copy/paste of poses.

That bug was also likely affecting other cases - basically it was making
auto-keying always key from evaluated ('visual') values, never base,
data values... Added a flag, in some cases we do want evaluated values
here, obviously.

12 months agoCycles: use viewport duplicator visibility on preview
Dalai Felinto [Wed, 6 Jun 2018 14:43:37 +0000 (16:43 +0200)]
Cycles: use viewport duplicator visibility on preview

12 months agoDepsgraph: Expose (evaluation) mode in rna
Dalai Felinto [Wed, 6 Jun 2018 14:38:10 +0000 (16:38 +0200)]
Depsgraph: Expose (evaluation) mode in rna

12 months agoDepsgraph iterator: Remove explicit mode
Dalai Felinto [Wed, 6 Jun 2018 14:01:51 +0000 (16:01 +0200)]
Depsgraph iterator: Remove explicit mode

We can get the mode from the depsgraph itself.

12 months agoFix T55350: Cycles: instanced hair with hidden emitter is invisible when rendering
Dalai Felinto [Wed, 6 Jun 2018 13:18:45 +0000 (15:18 +0200)]
Fix T55350: Cycles: instanced hair with hidden emitter is invisible when rendering

12 months agoCleanup: unused function
Campbell Barton [Wed, 6 Jun 2018 14:36:00 +0000 (16:36 +0200)]
Cleanup: unused function

12 months agoFix view_layer update function
Campbell Barton [Wed, 6 Jun 2018 14:31:05 +0000 (16:31 +0200)]
Fix view_layer update function

This was no longer working, now this works the same way as
scene.update(), only it applied to the current view layer.

Caused crash running alembic export from Python.

12 months agoCleanup: get rid of just-added G.main usage.
Bastien Montagne [Wed, 6 Jun 2018 14:32:09 +0000 (16:32 +0200)]
Cleanup: get rid of just-added G.main usage.

Was just added to ease merging of master, proper code now!

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 6 Jun 2018 14:25:28 +0000 (16:25 +0200)]
Merge branch 'master' into blender2.8

 Conflicts:
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/collada/DocumentExporter.h
source/blender/collada/SceneExporter.cpp
source/blender/collada/SceneExporter.h
source/blender/collada/collada.cpp
source/blender/collada/collada.h
source/blender/editors/armature/armature_edit.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/include/ED_armature.h
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_screen.h
source/blender/editors/io/io_collada.c
source/blender/editors/object/object_transform.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_window.c
source/blenderplayer/bad_level_call_stubs/stubs.c

12 months agoView3DShading popover: Naming + alignment
Jeroen Bakker [Wed, 6 Jun 2018 14:16:06 +0000 (16:16 +0200)]
View3DShading popover: Naming + alignment

12 months agoDepsgraph: remove legacy code for dupli group updates.
Brecht Van Lommel [Wed, 6 Jun 2018 12:39:05 +0000 (14:39 +0200)]
Depsgraph: remove legacy code for dupli group updates.

This caused crashes in some cases, and should be fully handled by
the depsgraph now.

12 months agoUI: sub panel titles draw smaller and indented.
Brecht Van Lommel [Wed, 6 Jun 2018 11:28:40 +0000 (13:28 +0200)]
UI: sub panel titles draw smaller and indented.

12 months agoFix incorrect double checked lock in collection object cache.
Brecht Van Lommel [Wed, 6 Jun 2018 10:18:41 +0000 (12:18 +0200)]
Fix incorrect double checked lock in collection object cache.

12 months agoMerge branch 'master' into blender2.8
Sybren A. Stüvel [Wed, 6 Jun 2018 13:58:18 +0000 (15:58 +0200)]
Merge branch 'master' into blender2.8

12 months agoAlembic export: only free duplilists when not NULL
Sybren A. Stüvel [Wed, 6 Jun 2018 13:42:20 +0000 (15:42 +0200)]
Alembic export: only free duplilists when not NULL

12 months agoCleanup: Nuke moar G.main usages...
Bastien Montagne [Wed, 6 Jun 2018 13:50:24 +0000 (15:50 +0200)]
Cleanup: Nuke moar G.main usages...

12 months agoView3D: Shading Popup
Jeroen Bakker [Wed, 6 Jun 2018 13:44:00 +0000 (15:44 +0200)]
View3D: Shading Popup

- layout so cavity options are better visible
- fixed issues showing wrong options in Material mode
- added labels + seperators

12 months agoLookDev: When HDRI could not be reloaded we should switch to world
Jeroen Bakker [Wed, 6 Jun 2018 13:25:05 +0000 (15:25 +0200)]
LookDev: When HDRI could not be reloaded we should switch to world

Thanks for reporting sergey!

12 months agoFix object-dupli selection w/ COW
Campbell Barton [Wed, 6 Jun 2018 13:19:16 +0000 (15:19 +0200)]
Fix object-dupli selection w/ COW

12 months agoT55333 Workbench: Cavity Shader
Jeroen Bakker [Wed, 6 Jun 2018 12:47:54 +0000 (14:47 +0200)]
T55333 Workbench: Cavity Shader

A cavity shader based on SSAO. Works on all workbench deferred passes.

Per 3d viewport the cavity shader options can be set as different
shading needed different options. Some global options are in the
Viewport Display of the scene like num samples and distance.

Experimental: Naming of Ridges and Valleys

12 months agoAlembic: Fix double-free of mutex
Sybren A. Stüvel [Wed, 6 Jun 2018 10:45:14 +0000 (12:45 +0200)]
Alembic: Fix double-free of mutex

The mutex was shared between CoW copies of the CacheFile datablock, and
as a result also freed multiple times. It is now only freed when the
original datablock is freed; the CoW copies share the same mutex.

12 months agoFix double-free of custom data
Sybren A. Stüvel [Wed, 6 Jun 2018 12:37:30 +0000 (14:37 +0200)]
Fix double-free of custom data

This causes a temporary spike in memory usage when creating a copy; the
entire copy will be removed anyway when DerivedMesh is removed.

12 months agoMove Time Remapping into a sub-panel
Pablo Vazquez [Wed, 6 Jun 2018 12:28:29 +0000 (14:28 +0200)]
Move Time Remapping into a sub-panel

12 months agoFix crash when file is saved in particle edit mode
Sergey Sharybin [Wed, 6 Jun 2018 12:13:46 +0000 (14:13 +0200)]
Fix crash when file is saved in particle edit mode

Depsgraph is not available on file load yet.

12 months agoUI: add particle brush to topbar
Campbell Barton [Wed, 6 Jun 2018 12:06:30 +0000 (14:06 +0200)]
UI: add particle brush to topbar

12 months agoParticle edit: Fix missing hair with new oarticle system added
Sergey Sharybin [Wed, 6 Jun 2018 11:53:51 +0000 (13:53 +0200)]
Particle edit: Fix missing hair with new oarticle system added

12 months agoParticle edit: Fix crash when trying to edit particles without cache
Sergey Sharybin [Wed, 6 Jun 2018 11:51:57 +0000 (13:51 +0200)]
Particle edit: Fix crash when trying to edit particles without cache

Particles in EMITTER mode needs to have cache.

12 months agoFix update issue in VPaint mode.
Bastien Montagne [Wed, 6 Jun 2018 10:39:49 +0000 (12:39 +0200)]
Fix update issue in VPaint mode.

Need to flush the changes through DEG CoW, otherwise drawing code would
not see them in some cases...

12 months agoDepsgraph: Silence relations builder errors
Sergey Sharybin [Wed, 6 Jun 2018 10:35:00 +0000 (12:35 +0200)]
Depsgraph: Silence relations builder errors

Were caused by depsgraph trying to create relations between objects
which are coming from restricted collection.

12 months agoDepsgraph: Expand object data datablocks for drivers
Sergey Sharybin [Wed, 6 Jun 2018 10:01:38 +0000 (12:01 +0200)]
Depsgraph: Expand object data datablocks for drivers

Drivers can reference object data datablock directly, and if there
was no object in the scene with that datablock, blender will crash.

12 months agoDepsgraph: Handle key->object relations from object builder
Sergey Sharybin [Wed, 6 Jun 2018 09:53:04 +0000 (11:53 +0200)]
Depsgraph: Handle key->object relations from object builder

12 months agoDepsgraph: Object data separation, armature
Sergey Sharybin [Wed, 6 Jun 2018 09:41:56 +0000 (11:41 +0200)]
Depsgraph: Object data separation, armature

12 months agoDepsgraph: Object data separation, geometry
Sergey Sharybin [Wed, 6 Jun 2018 09:22:20 +0000 (11:22 +0200)]
Depsgraph: Object data separation, geometry

12 months agoDepsgraph: Object data separation, camera
Sergey Sharybin [Wed, 6 Jun 2018 08:52:50 +0000 (10:52 +0200)]
Depsgraph: Object data separation, camera

12 months agoDepsgraph: Object data separation, lamp
Sergey Sharybin [Wed, 6 Jun 2018 08:47:54 +0000 (10:47 +0200)]
Depsgraph: Object data separation, lamp

12 months agoDepsgraph: Object data separation, light probes
Sergey Sharybin [Wed, 6 Jun 2018 08:23:45 +0000 (10:23 +0200)]
Depsgraph: Object data separation, light probes

This is a beginning of series of commits which will clearly separate
building IDs which are used as object data from object building.

The goal is to be able to always build whatever ID. Required to make
driver targets to work reliably with copy-on-write concept.

12 months agoDepsgraph: Remove confusing metaball logic
Sergey Sharybin [Wed, 6 Jun 2018 07:54:58 +0000 (09:54 +0200)]
Depsgraph: Remove confusing metaball logic

DATA datablock must evaluation must never depend on object it is
used for. If there is something what depends on an object, it must
be done on object level.

At least the actual callback was empty.

12 months agoWireframe: Fix do_version.
Clément Foucault [Wed, 6 Jun 2018 10:32:13 +0000 (12:32 +0200)]
Wireframe: Fix do_version.

12 months agoEnsure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers
Sybren A. Stüvel [Wed, 6 Jun 2018 10:21:36 +0000 (12:21 +0200)]
Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers

When the source mesh doesn't have the primary layers (CD_VERT for vdata,
etc.) the returned mesh also didn't have those layers, even when non-zero
elements were requested (for example requesting 4 vertices would still
result in mvert = NULL).

12 months agoConsolidated custom data layer initialisation
Sybren A. Stüvel [Wed, 6 Jun 2018 10:20:21 +0000 (12:20 +0200)]
Consolidated custom data layer initialisation

Code shared between BKE_mesh_new_nomain() and
BKE_mesh_new_nomain_from_template() is now in separate functions, instead
of copy-pasted.

12 months agoSet mesh->totface in nomain-mesh creation
Sybren A. Stüvel [Wed, 6 Jun 2018 10:16:02 +0000 (12:16 +0200)]
Set mesh->totface in nomain-mesh creation

The totxxx fields should match the number of elements in their respective
custom data layers.

12 months agoFix T55344: linked collection instance has user count 0.
Brecht Van Lommel [Wed, 6 Jun 2018 09:08:56 +0000 (11:08 +0200)]
Fix T55344: linked collection instance has user count 0.

12 months agoUI: tweak for Cycles panels.
Brecht Van Lommel [Tue, 5 Jun 2018 11:34:32 +0000 (13:34 +0200)]
UI: tweak for Cycles panels.

12 months agoCleanup: fix compiler warning.
Brecht Van Lommel [Tue, 5 Jun 2018 10:37:50 +0000 (12:37 +0200)]
Cleanup: fix compiler warning.

12 months agoFix importing temporary screens
Sybren A. Stüvel [Wed, 6 Jun 2018 09:13:05 +0000 (11:13 +0200)]
Fix importing temporary screens

Apparently Blender 2.79 could save temporary screens; those should not be
converted to workspaces.

12 months agoRenamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxx
Sybren A. Stüvel [Wed, 6 Jun 2018 08:30:24 +0000 (10:30 +0200)]
Renamed BKE_nomain_mesh_xxx → BKE_mesh_nomain_xxx

This maintains the `BKE_mesh_` prefix for the mesh-related BKE functions.

12 months agoDerivedMesh deprecation: Removed some functions in displist.c
Sybren A. Stüvel [Tue, 5 Jun 2018 16:31:47 +0000 (18:31 +0200)]
DerivedMesh deprecation: Removed some functions in displist.c

Those functions were using DerivedMesh but are not called from anywhere.
As a result, they cannot be tested after porting DerivedMesh to Mesh.

12 months agoDerivedMesh deprecation: marked no-longer-in-use function
Sybren A. Stüvel [Tue, 5 Jun 2018 16:18:45 +0000 (18:18 +0200)]
DerivedMesh deprecation: marked no-longer-in-use function

Functions that are no longer in use can be marked as such, so that later
we can easily remove them.

12 months agoModifiers: ported curve_calc_modifiers_post() internals from DerivedMesh → Mesh
Sybren A. Stüvel [Tue, 5 Jun 2018 13:59:30 +0000 (15:59 +0200)]
Modifiers: ported curve_calc_modifiers_post() internals from DerivedMesh → Mesh

The function still returns a DerivedMesh, but internally it uses Mesh
now.

12 months agoError in recent popover keep_open option
Campbell Barton [Wed, 6 Jun 2018 07:43:03 +0000 (09:43 +0200)]
Error in recent popover keep_open option