Sergey Sharybin
498ffef7b0
Subsurf: Use regular mutex instead of RW one
...
Mutex is now local to particular CCGDM, and guarding edge hash which is only
used by a single function only. There is no need to acquire read lock after
edge hash was created.
2018-01-11 14:38:58 +01:00
Bastien Montagne
b415ed55a7
Fix critical issue with our DNA ID tags (two totally different tags having same value).
...
Nice typo from rBc4046e9082f6, tssk. ;)
2018-01-11 14:26:44 +01:00
Campbell Barton
0edda8e4ce
Fix T53311: transform edge/normal orientation
...
When the edge is aligned with it's own normals,
transform orientation wasn't aligned with the edge.
2018-01-11 19:25:27 +11:00
Campbell Barton
717090f40e
UI: option not to show screen splitting widgets
...
Request for simplified Blender template,
this may be extended to limit access to other UI changes
that could be pressed by accident.
2018-01-11 16:10:46 +11:00
Campbell Barton
9d62e6e782
UI: don't draw outline when it's not calculated
...
Outline drawing was running even when there were no verts to draw.
Causes an assert in 2.8.
2018-01-11 13:23:55 +11:00
Campbell Barton
ac2ebf9c54
Fix T53455: Object disappear w/ TrackTo constraint
...
Regression caused by own commit 16fbb47c88 ,
this is really an edge case though since calling normalize twice fixes.
2018-01-11 10:57:30 +11:00
Philipp Oeser
d0cc5d8948
Fix T53752: Draw curve fails w/ stylus
2018-01-11 10:23:52 +11:00
Campbell Barton
f330005266
Cleanup: BKE naming conventions for datablock add/localize
...
Conventions were already followed nearly everywhere.
2018-01-11 10:01:01 +11:00
Sergey Sharybin
76bdd40bfd
Subsurf: Loop array should not be called mv
...
mv is a mesh vertex, not loop.
2018-01-10 14:58:49 +01:00
Sergey Sharybin
fca202566f
Subsurf: Remove increment of unused variable
2018-01-10 14:58:09 +01:00
Sergey Sharybin
2737837b09
Fix wrong data type used for undo memory limit
2018-01-10 13:20:36 +01:00
Sergey Sharybin
f21f18b572
Task scheduler: Use const qualifier in callbacks for parallel range
2018-01-10 12:53:59 +01:00
Sergey Sharybin
5614193745
Task scheduler: Use restrict pointer qualifier
...
Those pointers are never to be aliased, so let's be explicit about this and hope
compiler does save some CPU ticks.
2018-01-10 12:49:51 +01:00
Sergey Sharybin
518c65460e
Task scheduler: Use more const qualifiers
2018-01-10 12:27:43 +01:00
Sergey Sharybin
f68b2fd233
RNA: Increase memory limit settings to their possible max on platform
...
This is quite common to have 64GB memory now, and even 128. There is no reason
to add any artificial caps on the cache and undo memory here. We can not protect
against using too much memory in one cases and allow use of full computer
potential in others.
Now 32 bit will use 2GB max (as it used to be), but 64bit will use whatever
number of megabytes fits into integer.
Reviewers: campbellbarton, mont29
Subscribers: sebastian_k
Differential Revision: https://developer.blender.org/D2972
2018-01-10 11:09:10 +01:00
Sergey Sharybin
f0610563ee
math utils: Add size_t version of min and max functions
2018-01-10 11:06:44 +01:00
Campbell Barton
18f53d8822
Cleanup: comment block alignment
2018-01-10 19:57:02 +11:00
Campbell Barton
bc02c5de49
Alternate fix for brush user count
...
This reverts change to BKE_brush_add,
callers now remove the extra user.
Note this isn't very convenient for callers but
is consistent with other ID types.
In the future we will probably remove this and have new
ID's created with zero users.
2018-01-10 19:34:34 +11:00
Campbell Barton
3f837341c8
Correction to brush user commit
...
RNA API was compensating for the extra user.
2018-01-10 18:31:54 +11:00
Campbell Barton
6e6b79de35
Fix brush user count
...
New brushes had 2 users on adding.
Caused assert removing them after.
2018-01-10 17:45:34 +11:00
Campbell Barton
cacba951ea
Correct typos
2018-01-10 12:43:29 +11:00
Campbell Barton
fdd3d969a6
Fix T53491: Absolute tablet motion detection fails
...
When using a tablet, detecting absolute motion only worked
when activating a tool with the tablet.
Pressing Enter to run a tool for e.g. would use relative motion.
Now store is_motion_absolute in the event,
set for new events based on the most recent motion events.
2018-01-10 12:41:45 +11:00
bjornmose
9aada45e52
fix t53701 minimal changes to get it working right
2018-01-10 01:51:04 +01:00
Bastien Montagne
0f6ed7d111
Fix (unreported) potential crash.
...
RNA_pointer_as_string could return NULL instead of a valid string in some cases.
2018-01-09 19:51:50 +01:00
Sergey Sharybin
5fe87a0a8c
Task scheduler: Use single thread branch when range fits into single chunk
2018-01-09 18:10:47 +01:00
Sergey Sharybin
4a3b303bb0
Task scheduler: Fix wrong tasks calculation when chunk size is too big
2018-01-09 18:07:34 +01:00
Sergey Sharybin
932d448ae0
Task scheduler: Use const qualifiers in parallel range
2018-01-09 16:09:33 +01:00
Sergey Sharybin
8cffb0a141
Task scheduler: Avoid over-allocation of tasks for parallel ranges
...
This seems to only cause extra rthreading overhead on systems with 10s of
threads, without actually solving anything.
2018-01-09 16:09:33 +01:00
Sergey Sharybin
c4e42d70a4
Task scheduler: Add minimum number of iterations per thread in parallel range
...
The idea is to support following: allow doing parallel for on a small range,
each iteration of which takes lots of compute power, but limit such range to
a subset of threads.
For example, on a machine with 44 threads we can occupy 4 threads to handle
range of 64 elements, 16 elements per thread, where each block of 16 elements
is very complex to compute.
The idea should be to use this setting instead of global use_threading flag,
which is only based on size of array. Proper use of the new flag will improve
threadability.
This commit only contains internal task scheduler changes, this setting is not
used yet by any areas.
2018-01-09 16:09:33 +01:00
Sergey Sharybin
3144f0573a
Task scheduler: Simplify parallel range function
...
Basically, split it up and avoid extra abstraction level.
2018-01-09 16:09:33 +01:00
Sergey Sharybin
4c4a7e84c6
Task scheduler: Use single parallel range function with more flexible function
...
Now all the fine-tuning is happening using parallel range settings structure,
which avoid passing long lists of arguments, allows extend fine-tuning further,
avoid having lots of various functions which basically does the same thing.
2018-01-09 16:09:33 +01:00
Sergey Sharybin
d2708b0f73
Task scheduler: Get rid of extended version of parallel range callback
...
Wrap all arguments into TLS type of argument. Avoids some branching and also
makes it easier to extend things in the future.
2018-01-09 16:09:33 +01:00
Sergey Sharybin
f5d64b59f5
Fix T53691: Motion Tracking Object Solver Constraint doesn't work as Bone Constraint
2018-01-09 14:27:19 +01:00
Sergey Sharybin
bf8137994d
Depsgraph: Move special handling of tracking constraints to a dedicated function
2018-01-09 14:11:23 +01:00
Sergey Sharybin
d32878b425
Depsgraph: Perform early check on constraint info NULL
2018-01-09 13:09:59 +01:00
Campbell Barton
ce0fcf1378
Correct error in last commit (versioning)
2018-01-09 15:17:00 +11:00
Campbell Barton
6554207841
Add deform axis for Simple Deform modifier
...
D2989 by @dmarra w/ own edits
2018-01-09 15:09:55 +11:00
Sebastian Koenig
c8a989d644
No groping in Blender's Tracker!
...
This a small cleanup of something which I think is just a typo anyway.
With all the recent talks of harrassment and groping, I think we better avoid
that within our source code! :)
Reviewers: sergey
Reviewed By: sergey
Tags: #motion_tracking
Differential Revision: https://developer.blender.org/D2979
2018-01-08 14:12:15 +01:00
Sergey Sharybin
3ee2ed3049
Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker
...
Simple fix, which is totally safe for 2.79a!
2018-01-08 14:10:50 +01:00
Bastien Montagne
96e507d989
Fix T53509: Datablock ID Properties attached to bpy.types.Material are not loaded.
...
Stupid mistake in material reading code, thanks to Simon Wendsche (@BYOB) for the investigation and fix!
To be backported to 2.79a.
2018-01-08 09:37:56 +01:00
Campbell Barton
a7b4f98e73
Fix T53713: User remap failed w/ texface images
2018-01-08 16:58:58 +11:00
Ines Almeida
87607254d6
(Nodes) Display image name if any in the Image and Texture Image node title
2018-01-07 22:29:25 +01:00
Aaron Carlisle
add580beee
Fix T47212: Luminance Key not working with HDR and out-of-gamut ranges.
...
Differential Revision: https://developer.blender.org/D2981
2018-01-06 16:41:39 +01:00
Brecht Van Lommel
0e59f2b256
Fix T47212: incorrect luma coefficients for Luminance Key node.
...
Differential Revision: https://developer.blender.org/D2982
2018-01-06 16:41:33 +01:00
Philipp Oeser
c6abf41f71
Fix T53650: remove hard limits on force field size and max distance.
...
Differential Revision: https://developer.blender.org/D2987
2018-01-06 16:15:13 +01:00
Campbell Barton
6eb89027c3
Fix T53696: Compositor HSV limits changed
2018-01-05 20:13:17 +11:00
Dalai Felinto
95d83b9b23
Fix leak when rendering OpenGL animations
...
We were duplicating rectf twice :/
Patch by Clément Foucault.
2018-01-04 15:56:43 -02:00
Campbell Barton
0becc8a7dd
Fix T52953: Crash removing material
2018-01-04 21:35:09 +11:00
Campbell Barton
457dc8d12c
Fix T53586: Surfaces collapse when joined
2018-01-04 16:01:27 +11:00
Campbell Barton
9b65560934
Fix T53637: Keymap from app-template ignored
...
Addon's were also ignored
2018-01-04 14:19:00 +11:00