blender.git
4 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 17 Jun 2017 15:44:04 +0000 (01:44 +1000)]
Merge branch 'master' into blender2.8

4 years agoCleanup: use uint
Campbell Barton [Sat, 17 Jun 2017 15:34:41 +0000 (01:34 +1000)]
Cleanup: use uint

4 years agoGuarded allocator: Fix type in macro definition
Sergey Sharybin [Sat, 17 Jun 2017 14:13:30 +0000 (16:13 +0200)]
Guarded allocator: Fix type in macro definition

The crash did not happen yet because we always had proper vmemh defined in
the parent scope.

Patch by Ivan Ivanov (aka obiwanus), thanks!

Differential Revision: https://developer.blender.org/D2715

4 years agoManipulator: draw options for dial
Campbell Barton [Sat, 17 Jun 2017 05:32:47 +0000 (15:32 +1000)]
Manipulator: draw options for dial

- Option to start helper angle lines based on a vector
  instead of the initial mouse coords (useful for bisect & spin).
- Option to show 2x helper lines
  useful when dial is used to rotate an axis value.

4 years agoManipulator: correct dial angle
Campbell Barton [Sat, 17 Jun 2017 04:31:27 +0000 (14:31 +1000)]
Manipulator: correct dial angle

Calculation was done in screen-space giving inaccuracy,
making the angle incorrect for tool code.

Cast mouse coords onto the dial plane to calculate the angle instead.

4 years agoManipulator: fix general purpose dial use
Campbell Barton [Sat, 17 Jun 2017 01:55:53 +0000 (11:55 +1000)]
Manipulator: fix general purpose dial use

Wasn't checking own location when checking if flip is needed.

4 years agoCleanup: unused code
Campbell Barton [Sat, 17 Jun 2017 01:31:49 +0000 (11:31 +1000)]
Cleanup: unused code

4 years agoManipulator: Ignore zoom-level for on-screen widgets
Campbell Barton [Sat, 17 Jun 2017 01:24:26 +0000 (11:24 +1000)]
Manipulator: Ignore zoom-level for on-screen widgets

4 years agoCamera widget only drew 3 sides
Campbell Barton [Sat, 17 Jun 2017 01:09:08 +0000 (11:09 +1000)]
Camera widget only drew 3 sides

4 years agoCleanup: minor consistency tweak for type name
Campbell Barton [Sat, 17 Jun 2017 00:04:48 +0000 (10:04 +1000)]
Cleanup: minor consistency tweak for type name

4 years agoManipulator: remove type specific 'new' functions
Campbell Barton [Sat, 17 Jun 2017 00:01:22 +0000 (10:01 +1000)]
Manipulator: remove type specific 'new' functions

Instead use generic 'WM_manipulator_new', adding a new 'setup'
callback (like wmManipulatorGroup.setup) used to initialize type vars.

This moves conventions closer to wmOperator and simplifies exposing to
Python.

4 years agoManipulator: initial manipulator for spin operator
Campbell Barton [Fri, 16 Jun 2017 20:38:51 +0000 (06:38 +1000)]
Manipulator: initial manipulator for spin operator

4 years agoManipulator: New grab preset, use for bisect
Campbell Barton [Fri, 16 Jun 2017 20:13:44 +0000 (06:13 +1000)]
Manipulator: New grab preset, use for bisect

4 years agoManipulator: add array get/set functions
Campbell Barton [Fri, 16 Jun 2017 16:31:21 +0000 (02:31 +1000)]
Manipulator: add array get/set functions

4 years agoPyAPI: Fix warning about indent
Aaron Carlisle [Fri, 16 Jun 2017 16:30:18 +0000 (12:30 -0400)]
PyAPI: Fix warning about indent

4 years agoFix object selection doversion issue since Workspace
Dalai Felinto [Fri, 16 Jun 2017 16:12:20 +0000 (18:12 +0200)]
Fix object selection doversion issue since Workspace

Workspace commit (7f564d74f9edaaa41ce27c6e854869096f70b4da) made
selection to not be carried away from 2.7x files into 2.8.

4 years agoFix T51810: Add minimal example of usage of translation API for non-official addons.
Bastien Montagne [Fri, 16 Jun 2017 14:43:46 +0000 (16:43 +0200)]
Fix T51810: Add minimal example of usage of translation API for non-official addons.

4 years agoUsual i18n/UI messages fixes.
Bastien Montagne [Fri, 16 Jun 2017 10:50:24 +0000 (12:50 +0200)]
Usual i18n/UI messages fixes.

Please do not add useless tooltips! We have enough messages to translate
already...

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 16 Jun 2017 08:26:37 +0000 (10:26 +0200)]
Merge branch 'master' into blender2.8

4 years agoCycles: Fix race condition happening in progress utility
Sergey Sharybin [Fri, 16 Jun 2017 08:22:35 +0000 (10:22 +0200)]
Cycles: Fix race condition happening in progress utility

This is not enough to mutex-guard modification code of integer values,
since this operation is NOT atomic. This is not even safe for a single
byte data types.

For now guarded the getter functions, similar to other functions in
this module.

Ideally we want to switch modification to an atomic operations, so we
wouldn't need any locks in the getters.

4 years agoPyAPI: Fix changed ref link
Aaron Carlisle [Fri, 16 Jun 2017 02:03:22 +0000 (22:03 -0400)]
PyAPI: Fix changed ref link

4 years agoPyAPI: Add HTML logo and favicon
Aaron Carlisle [Fri, 16 Jun 2017 01:24:50 +0000 (21:24 -0400)]
PyAPI: Add HTML logo and favicon

Differential Revision: https://developer.blender.org/D2621

4 years agoPyAPI: Remove addon tutorial
Aaron Carlisle [Thu, 15 Jun 2017 17:00:58 +0000 (13:00 -0400)]
PyAPI: Remove addon tutorial

This page now lives at https://docs.blender.org/manual/en/dev/advanced/scripting/addon_tutorial.html

4 years agoMissed last commit
Campbell Barton [Thu, 15 Jun 2017 22:52:42 +0000 (08:52 +1000)]
Missed last commit

4 years agoCleanup: rename manipulator files
Campbell Barton [Thu, 15 Jun 2017 22:51:14 +0000 (08:51 +1000)]
Cleanup: rename manipulator files

4 years agoAdd bisect manipulator
Campbell Barton [Thu, 15 Jun 2017 22:25:24 +0000 (08:25 +1000)]
Add bisect manipulator

Example that uses library widgets to control an operator,
the API hasn't been reviewed yet so this can be seen as a test.

4 years agoAdd support for delayed manipulator removal
Campbell Barton [Thu, 15 Jun 2017 22:20:27 +0000 (08:20 +1000)]
Add support for delayed manipulator removal

This is needed so manipulators can tag themselves for removal
without causing problems from freeing data within a callback.

Also use properties within the dial manipulator and fix an error where
removing a wmManipulatorGroupType didn't remove its keymap.

4 years agoCMake: print absolute CMakeCache.txt
Campbell Barton [Thu, 15 Jun 2017 21:38:20 +0000 (07:38 +1000)]
CMake: print absolute CMakeCache.txt

Message didn't show the path of the file to remove
which could be confusing.

4 years agoUV manipulator from custom widgets branch
Campbell Barton [Thu, 15 Jun 2017 21:30:27 +0000 (07:30 +1000)]
UV manipulator from custom widgets branch

This isn't advanced, just adding to get custom
manipulator branch from being too much out of sync with 2.8.

4 years agoExpose World ID panel for Eevee
Dalai Felinto [Thu, 15 Jun 2017 16:46:14 +0000 (18:46 +0200)]
Expose World ID panel for Eevee

That said, materials need to be updated when switching the world.

4 years agoFix duplication of scene, it was missing duplication of layer properties
Dalai Felinto [Thu, 15 Jun 2017 16:31:30 +0000 (18:31 +0200)]
Fix duplication of scene, it was missing duplication of layer properties

4 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 15 Jun 2017 15:29:20 +0000 (01:29 +1000)]
Merge branch 'master' into blender2.8

4 years agoMath Lib: add angle_on_axis_v3v3_v3
Campbell Barton [Thu, 15 Jun 2017 15:25:08 +0000 (01:25 +1000)]
Math Lib: add angle_on_axis_v3v3_v3

Use for calculating the angle between 2 directions on an axis.

Also signed version and normalized plane projection,
use when input is normalized.

4 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 15 Jun 2017 14:37:10 +0000 (16:37 +0200)]
Merge branch 'master' into blender2.8

4 years agoCleanup: do not use `BKE_libblock_free_ex()` unless needed!
Bastien Montagne [Thu, 15 Jun 2017 14:20:51 +0000 (16:20 +0200)]
Cleanup: do not use `BKE_libblock_free_ex()` unless needed!

4 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 15 Jun 2017 13:54:11 +0000 (15:54 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/collada/MeshImporter.cpp
source/blender/editors/object/object_add.c
source/blender/editors/screen/screen_edit.c

4 years agoFix/workaround 'convert object' messing up linked data.
Bastien Montagne [Thu, 15 Jun 2017 13:40:24 +0000 (15:40 +0200)]
Fix/workaround 'convert object' messing up linked data.

'Convert To...' Object operation has very weird effect of actually
working at obdata level, not object level, which means *all* objects
(even unselected/hidden/in other scenes/...) using same obdata will be
converted to new selected type.

IMHO this is very bad behavior, but... not a bug really, so do not
change this for now.

But at least, do not do that when working on some linked data, else it
leaves Blend file in invalid (incoherent) state until next reload.

So workaround for now is to enforce the 'Keep Original' option when some
linked object/obdata is affected by the operation.

Also fixed somewhat broken usercount handling in Curve->Mesh part.

4 years agoEevee: Use PROP_NONE for probe grid resolution
Dalai Felinto [Thu, 15 Jun 2017 13:02:32 +0000 (15:02 +0200)]
Eevee: Use PROP_NONE for probe grid resolution

It makes no sense to use PROP_PIXEL as unit here.

4 years agoLayers: Scene copy should copy selection as well.
Dalai Felinto [Thu, 15 Jun 2017 11:46:52 +0000 (13:46 +0200)]
Layers: Scene copy should copy selection as well.

We need this for Depsgraph, otherwise CoW scene will have different selection properties.

4 years agoCleanup: make Group Unlink outliner action use `BKE_libblock_delete() too.
Bastien Montagne [Thu, 15 Jun 2017 11:05:29 +0000 (13:05 +0200)]
Cleanup: make Group Unlink outliner action use `BKE_libblock_delete() too.

Same as in rB2bd51474a44...

4 years agoCleanup: remove useless call to `BKE_screen_free()` in screen deletion.
Bastien Montagne [Thu, 15 Jun 2017 11:00:11 +0000 (13:00 +0200)]
Cleanup: remove useless call to `BKE_screen_free()` in screen deletion.

`BKE_libblock_free()` will call it itself.

4 years agoFix dangerous code when deleting Scene.
Bastien Montagne [Thu, 15 Jun 2017 10:57:08 +0000 (12:57 +0200)]
Fix dangerous code when deleting Scene.

That one was probably not an actual issue, except maybe in some corner
cases (like deleting a linked scene also used by some other linked scene).

Again, better not try to do smart & complex freeing logic outside of
BKE_library area, let's keep spaghetti nitghmare in a single place!

4 years agoUpdates to manipulator API
Campbell Barton [Thu, 15 Jun 2017 10:48:24 +0000 (20:48 +1000)]
Updates to manipulator API

While this is work-in-progress from custom-manipulators branch
its stable so adding into 2.8 so we don't get too much out of sync.

- ManipulatorGroupType's are moved out of the manipulator-map and are now
  global (like operators, panels etc) and added into spaces as needed.
  Without this all operators that might ever use a manipulator in the 3D
  view would be polling the viewport.
- Add optional get/set callbacks for non-RNA properties
  Needed so re-usable manipulators can control values that
  don't correspond to a single properly or need conversion.
- Fix divide by zero bug in arrow manipulator (when moving zero pixels).

4 years agoCleanup: make Group Unlink operator use BKE_libblock_delete(), since that's what...
Bastien Montagne [Thu, 15 Jun 2017 10:49:40 +0000 (12:49 +0200)]
Cleanup: make Group Unlink operator use BKE_libblock_delete(), since that's what it is doing.

Previous code (same as what `BKE_libblock_free_us()` is doing when
usercount reach 0) was probably OK in that specific case, but still not
good idea, and potentially risky.

4 years agoFix collada importer doing own handling of usercount/freeing.
Bastien Montagne [Thu, 15 Jun 2017 10:44:15 +0000 (12:44 +0200)]
Fix collada importer doing own handling of usercount/freeing.

Better use generic `BKE_libblock_free_us()`.

4 years agoFix potentially dnagerous code in doversionning of brush.
Bastien Montagne [Thu, 15 Jun 2017 10:38:55 +0000 (12:38 +0200)]
Fix potentially dnagerous code in doversionning of brush.

Even though in that specific it was probably safe-ish, there is no
guarantee at this point Brush we want to remove are not used somewhere,
better take the slightly slower, much safer `BKE_libblock_delete()` path here.

4 years agoFix serious bug in 'curve-to-mesh' conversion code.
Bastien Montagne [Thu, 15 Jun 2017 10:34:12 +0000 (12:34 +0200)]
Fix serious bug in 'curve-to-mesh' conversion code.

Eeeeeek!^2 Calling unconditionnaly ID freeing `BKE_libblock_free()` on a
datablock (ob->data, i.e. Curve) that may be used elsewhere...
Veryveryvery bad!

4 years agoFix potential memory leak in Sequencer sound strip creation code.
Bastien Montagne [Thu, 15 Jun 2017 10:32:27 +0000 (12:32 +0200)]
Fix potential memory leak in Sequencer sound strip creation code.

4 years agoFix T51463: Eevee motion blur not working (with AMD)
Dalai Felinto [Thu, 15 Jun 2017 09:31:43 +0000 (11:31 +0200)]
Fix T51463: Eevee motion blur not working (with AMD)

GLSL needs FragColor to be initialized. The default vec4 value seems to be
implementation dependent. Or it's a bug on Mesa/AMD.

4 years agoFix strict cflags compilation after recent const changes
Sergey Sharybin [Thu, 15 Jun 2017 08:19:33 +0000 (10:19 +0200)]
Fix strict cflags compilation after recent const changes

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 15 Jun 2017 08:17:51 +0000 (10:17 +0200)]
Merge branch 'master' into blender2.8

4 years agoFix compilation error with strict cflags after recent const changes
Sergey Sharybin [Thu, 15 Jun 2017 08:14:56 +0000 (10:14 +0200)]
Fix compilation error with strict cflags after recent const changes

4 years agoFurther improvements of text editor for POV-Ray
Bastien Montagne [Thu, 15 Jun 2017 07:34:38 +0000 (09:34 +0200)]
Further improvements of text editor for POV-Ray

*tryed "#" as preprocessor used in POV-Ray for language keywords best behaviour was to have it as a punctuation symbol
*moved "finish" to its proper category
*changed order of some POV-Ray ini files keywords to have them work better
*added a few keywords from latest pov version
*Fixed C-style closing of multiline comments (*/)

Reviewers: campbellbarton, mont29

Reviewed By: campbellbarton, mont29

Subscribers: mont29

Differential Revision: https://developer.blender.org/D2707

4 years agoPyAPI: Add toctree link on parent page of submodule
Aaron Carlisle [Thu, 15 Jun 2017 05:41:28 +0000 (01:41 -0400)]
PyAPI: Add toctree link on parent page of submodule

4 years agoPyAPI: Proper Solution to bpy.app
Aaron Carlisle [Thu, 15 Jun 2017 04:54:41 +0000 (00:54 -0400)]
PyAPI: Proper Solution to bpy.app

4 years agoProbes: Modify Add Menu and change defaults.
Clément Foucault [Wed, 14 Jun 2017 22:53:11 +0000 (00:53 +0200)]
Probes: Modify Add Menu and change defaults.

4 years agoProbe: Fix display of the Influence of grid probes.
Clément Foucault [Wed, 14 Jun 2017 22:23:37 +0000 (00:23 +0200)]
Probe: Fix display of the Influence of grid probes.

4 years agoEevee: Fix grid probe updating when updating cube probe.
Clément Foucault [Wed, 14 Jun 2017 22:23:00 +0000 (00:23 +0200)]
Eevee: Fix grid probe updating when updating cube probe.

4 years agoEevee: Probes: Add data display for cubemaps.
Clément Foucault [Wed, 14 Jun 2017 22:10:34 +0000 (00:10 +0200)]
Eevee: Probes: Add data display for cubemaps.

4 years agoEevee: Group octahedron map functions into one file.
Clément Foucault [Wed, 14 Jun 2017 22:09:49 +0000 (00:09 +0200)]
Eevee: Group octahedron map functions into one file.

4 years agoEevee: Some probe update changes.
Clément Foucault [Wed, 14 Jun 2017 20:46:48 +0000 (22:46 +0200)]
Eevee: Some probe update changes.

Dont render grids if cubemap count changes (because it does not depends on).
Recalc lighting if probe type change.

4 years agoEevee: Probes: Change falloff of irradiance grid.
Clément Foucault [Wed, 14 Jun 2017 20:45:20 +0000 (22:45 +0200)]
Eevee: Probes: Change falloff of irradiance grid.

4 years agoProbe: fix clip distances showing only for one probe.
Clément Foucault [Wed, 14 Jun 2017 17:35:31 +0000 (19:35 +0200)]
Probe: fix clip distances showing only for one probe.

4 years agoEevee: Irradiance grid: support for non-blocking update and multiple bounces.
Clément Foucault [Wed, 14 Jun 2017 16:52:53 +0000 (18:52 +0200)]
Eevee: Irradiance grid: support for non-blocking update and multiple bounces.

4 years agoEevee: Add Grid debug display.
Clément Foucault [Wed, 14 Jun 2017 11:45:54 +0000 (13:45 +0200)]
Eevee: Add Grid debug display.

4 years agoEevee: Fix probe diffuse computation.
Clément Foucault [Wed, 14 Jun 2017 11:44:07 +0000 (13:44 +0200)]
Eevee: Fix probe diffuse computation.

4 years agoEevee: Split irradiance functions to their own new file.
Clément Foucault [Wed, 14 Jun 2017 09:09:13 +0000 (11:09 +0200)]
Eevee: Split irradiance functions to their own new file.

4 years agoProbe: Fix probe panel
Clément Foucault [Wed, 14 Jun 2017 08:36:33 +0000 (10:36 +0200)]
Probe: Fix probe panel

4 years agoEevee: Disable specular when rendering probes.
Clément Foucault [Wed, 14 Jun 2017 08:35:28 +0000 (10:35 +0200)]
Eevee: Disable specular when rendering probes.

This prevents weird reflections and really strong indirect lighting.

4 years agoProbe: fix grid default resolution.
Clément Foucault [Tue, 13 Jun 2017 15:40:10 +0000 (17:40 +0200)]
Probe: fix grid default resolution.

4 years agoEevee: Add Irradiance Grid support
Clément Foucault [Tue, 13 Jun 2017 15:39:39 +0000 (17:39 +0200)]
Eevee: Add Irradiance Grid support

Early implementation. Slow and still has quality
3 ways of storing irradiance:
- Spherical Harmonics: Have problem with directionnal lighting.
- HL2 diffuse cube: Very low resolution but smooth transitions.
- Diffuse cube: High storage requirement.

Also include some name change.

4 years agoProbe: Add grid probe parameters.
Clément Foucault [Tue, 13 Jun 2017 13:56:04 +0000 (15:56 +0200)]
Probe: Add grid probe parameters.

4 years agoPYAPI: Fix mathutils doc structure
Aaron Carlisle [Wed, 14 Jun 2017 20:46:49 +0000 (16:46 -0400)]
PYAPI: Fix mathutils doc structure

4 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 14 Jun 2017 20:39:33 +0000 (22:39 +0200)]
Merge branch 'master' into blender2.8

4 years agoMake whole ID copying code use const source pointer.
Bastien Montagne [Wed, 14 Jun 2017 20:36:30 +0000 (22:36 +0200)]
Make whole ID copying code use const source pointer.

Noisy change, but safe, and better do it sooner than later if we are to
rework copying code. Also, previous commit shows this *is* useful to
catch some mistakes.

4 years agoFix three obvious mistakes in brush/mask/cachefile ID copying.
Bastien Montagne [Wed, 14 Jun 2017 20:33:04 +0000 (22:33 +0200)]
Fix three obvious mistakes in brush/mask/cachefile ID copying.

They were modifying some source ID prop, instead of copied version of
it... Found while making all source of ID copying const. ;)

4 years agoPYAPI: fix documention structure of bpy.app
Aaron Carlisle [Wed, 14 Jun 2017 20:19:05 +0000 (16:19 -0400)]
PYAPI: fix documention structure of bpy.app

4 years agoFix missing toctree for bmesh submodules
Aaron Carlisle [Wed, 14 Jun 2017 19:22:26 +0000 (15:22 -0400)]
Fix missing toctree for bmesh submodules

4 years agoPYAPI: Fix freestyle submodules without tocrees
Aaron Carlisle [Wed, 14 Jun 2017 18:41:07 +0000 (14:41 -0400)]
PYAPI: Fix freestyle submodules without tocrees

Fixes 6 compile warnings
Follow up on rBf87ca5f1c314f67353b6111d3647aef159dc07c6

4 years agoAdd an option to free scene without doing id-counters
Sergey Sharybin [Wed, 14 Jun 2017 14:56:21 +0000 (16:56 +0200)]
Add an option to free scene without doing id-counters

This is similar to some other datablocks. Mainly applies to collections,
so freeing scene does not involve changing any non-directly owned data.

There are two main usecases foreseen for the future:

- Less CPU ticks on bmain free, where everything is freed anyway and
  there is no need to preserve id counters.

- Easier freeing of temporary data, including data which is used by
  depsgraph's copy-on-write mechanism.

Neither of those are currently implemented, but will be shortly.

4 years agoImplement hair in eevee
Luca Rood [Wed, 14 Jun 2017 10:39:57 +0000 (12:39 +0200)]
Implement hair in eevee

New implementation of hair for Eevee.

Note: A hard coded "transmission" property is being used. This should
eventually be exposed to the UI, possibly in the form of SSS
properties.

4 years agoTemporarily disable material preview (T51796 workaround)
Luca Rood [Wed, 14 Jun 2017 10:29:32 +0000 (12:29 +0200)]
Temporarily disable material preview (T51796 workaround)

This stops the memory breakage caused by the material preview jobs,
to enable the new hair drawing implementation.

(This should be reverted once T51796 is actually fixed!)

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 14 Jun 2017 10:02:58 +0000 (12:02 +0200)]
Merge branch 'master' into blender2.8

4 years agoDepsgraph: Cleanup, indentation
Sergey Sharybin [Wed, 14 Jun 2017 10:01:52 +0000 (12:01 +0200)]
Depsgraph: Cleanup, indentation

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 14 Jun 2017 09:17:13 +0000 (11:17 +0200)]
Merge branch 'master' into blender2.8

4 years agoRemove unused bmain argument from BKE_libblock_free_data
Sergey Sharybin [Wed, 14 Jun 2017 09:16:34 +0000 (11:16 +0200)]
Remove unused bmain argument from BKE_libblock_free_data

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 14 Jun 2017 08:54:58 +0000 (10:54 +0200)]
Merge branch 'master' into blender2.8

4 years agoCleanup: Indentation got broken in previous commit
Sergey Sharybin [Wed, 14 Jun 2017 08:54:30 +0000 (10:54 +0200)]
Cleanup: Indentation got broken in previous commit

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 14 Jun 2017 08:48:20 +0000 (10:48 +0200)]
Merge branch 'master' into blender2.8

4 years agoAdd utility function to free memory used by a datablock
Sergey Sharybin [Wed, 14 Jun 2017 08:45:20 +0000 (10:45 +0200)]
Add utility function to free memory used by a datablock

This function is similar to BKE_libblock_free but does no DEG
tagging or any extra things, just operates on memory.

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 14 Jun 2017 08:11:18 +0000 (10:11 +0200)]
Merge branch 'master' into blender2.8

4 years agoDepsgraph: Remove unused ID node removal
Sergey Sharybin [Wed, 14 Jun 2017 08:10:39 +0000 (10:10 +0200)]
Depsgraph: Remove unused ID node removal

4 years agoCycles: Fix typo in comment
Sergey Sharybin [Wed, 14 Jun 2017 07:54:07 +0000 (09:54 +0200)]
Cycles: Fix typo in comment

4 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 14 Jun 2017 07:17:00 +0000 (17:17 +1000)]
Merge branch 'master' into blender2.8

4 years agoFix buffer read error w/ 2 pass select queries
Campbell Barton [Wed, 14 Jun 2017 07:03:49 +0000 (17:03 +1000)]
Fix buffer read error w/ 2 pass select queries

Also don't do second pass when the first has no hits.

4 years agoFix possible heap use-after-free in workspace lib-linking
Julian Eisel [Tue, 13 Jun 2017 22:09:37 +0000 (00:09 +0200)]
Fix possible heap use-after-free in workspace lib-linking

Caused by one of the recent commits during workspace review.

4 years agoFix compiling blenderplayer (tm)
Julian Eisel [Tue, 13 Jun 2017 21:40:31 +0000 (23:40 +0200)]
Fix compiling blenderplayer (tm)

4 years agoFix T51794: Crash on hair file when opening with no UI
Julian Eisel [Tue, 13 Jun 2017 21:37:37 +0000 (23:37 +0200)]
Fix T51794: Crash on hair file when opening with no UI

Just a workaround for now.

4 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Tue, 13 Jun 2017 15:45:36 +0000 (17:45 +0200)]
Merge branch 'master' into blender2.8

4 years agoAdd utility function to get size of given ID type
Sergey Sharybin [Tue, 13 Jun 2017 15:42:31 +0000 (17:42 +0200)]
Add utility function to get size of given ID type

Optionally it'll also give name used for memory allocation.