32fef3040f
fix attempt for conversion of multiple FM objects to keyframed shard objects
2021-01-13 17:54:26 +01:00
233ad61cb8
potential fix for incorrect external mode custom rotations after loading
2019-09-06 22:26:41 +02:00
969fca718a
disabled offset based fallback in rotation calculation
...
it caused unwanted sudden rotation changes
2019-06-17 14:35:25 +02:00
af7032e9f0
only write rotation data to mesh if particle rotation was enabled
2019-06-17 10:59:55 +02:00
9c1016b74e
fix for rotation calculation in anim bind
2019-06-17 10:45:38 +02:00
7a37dbbaeb
fix attempt for binding to particles
2019-06-15 20:05:27 +02:00
a2fb21104a
deform mblur fix FM
...
call for precalcing velocities was not always reached (only for autohide enabled)
2019-03-13 21:42:02 +01:00
33222dd8f6
grr formatting typo
2019-03-13 16:31:54 +01:00
0001491d57
update links to FM hosting pages
2019-03-13 16:28:13 +01:00
6c12b6559e
partial fix for wrong rotation when converting to keyframes
...
forgot to initialize ob->quat for passive objects, they are most likely in euler rotation
mode still and the ob->quat seems not automatically in sync
2019-02-03 12:41:18 +01:00
38d5aa3a58
expose rigidbody apply_force and apply_torque to python via rna function
2019-01-25 18:11:57 +01:00
e510259377
crash fix for using Final Solid if derivedFinal is NULL
...
was missing a nullpointer check, fallback is to return a DM of the basemesh
2019-01-16 16:46:50 +01:00
74d4e4c443
pull animated bind update calls out of loop
...
the function does a loop on its own (over meshislands in fm)
2019-01-11 14:21:49 +01:00
8df4ac8a84
fix attempt for previous rotation fix with bound objects
2019-01-10 21:56:48 +01:00
e6ce7b9805
fix for bound object lagging behind one frame
2019-01-10 19:27:38 +01:00
463f165dbf
hopefully proper rotation fix for animated mesh bind
2019-01-09 20:16:51 +01:00
c8d6bba3cc
backport of master fix for https://developer.blender.org/T56969
...
allows to let the branch run with python 3.7 too
2018-12-02 22:16:16 +01:00
7a18c905bf
transform fix for external centroid-based constraints
2018-12-02 21:52:32 +01:00
8b322524c9
small fix for minimum mass and UI float display precision changes
...
testing now against being smaller than minimum mass 0.001 and setting it to 0.001 instead
of testing against 0 (useless with float)
adapted displayed UI precision with breaking threshold, cluster breaking threshold, breaking distance and cluster breaking distance.
2018-12-02 21:30:39 +01:00
5183a1d0ed
fixes for dynamic fracture
...
fixes for:
- speed transfer (shards could stop their motion)
- shards could be stuck in the air
- ghost dynamic triggers work now too (firing a contact callback)
2018-11-09 23:16:02 +01:00
7da0f0671a
crash fix for compound collision + expose constraint rules ui for compound mode
...
parts of the constraint rules can influence compound simulation behavior too, especially
clustering. You can either simulate compounds with our without triggers. First method might be slower than with constraints, but no bending. With triggers its faster, but objects always fall apart entirely (clusters can control this a bit)
2018-11-08 15:08:59 +01:00
3fa179f341
disabled a verbose print when using many objects
2018-10-31 15:08:55 +01:00
982720cffe
fix for autohide with fractal (could leave holes near inner edges before); fractal/fast bisect should now also take extra objects / helper better into account
2018-10-01 17:17:12 +02:00
cdf05d154a
do not show dump writing routine in dump any more
...
did also use exception handler and manually set up signals
2018-09-09 16:12:31 +02:00
a607ddd66a
very simple confirm dialog whether to send crash minidump or not, with xmessage
2018-09-08 18:09:33 +02:00
07e497db29
backported existing crashpad support (win, mac, needs testing) and added breakpad support (linux)
2018-09-08 02:00:56 +02:00
d6b6484931
constraint UI label / tooltip clarifications
...
now having Search Method, Search Limit as labels, tooltips explain that this is related to shards as well
2018-09-05 14:34:23 +02:00
5aeff9291f
backport of new linux library build system to FM 2.79 branch
...
after upgrade to Linux Mint 19 locally, nothing did work anymore basically... and in order to use this with the blender docker build system, it needed the new(er) cmake based library building system.
2018-09-03 20:06:25 +02:00
f0aef2afe9
let neighbor shards now only be stopped if propagate trigger is enabled
2018-09-02 22:09:47 +02:00
d846f810b2
added autohide filtering based on filter object vertex positions
...
mesh objects now use their verts and a distance, while empties (or other non-mesh objects) still
use the maximum of the object size as radius
2018-08-12 14:54:57 +02:00
c5cf0667cb
re-enabled deform mblur for FM, and hopefully fixed related crashes
2018-08-11 00:12:16 +02:00
882642157c
disable deform mblur in FM for now (precalced velocities)
...
it caused crashes at baking and rendering, as well as on saving and loading.
Needs to be re-implemented differently without customdata, rather let cycles read the rigidbody
data directly via FM.
2018-08-10 13:49:39 +02:00
16b07fb08d
allow grid spacing > 1
2018-08-03 11:22:08 +02:00
3436ed8df7
use voro particle order now correctly, fixes brick fracture problems.
2018-08-02 13:42:32 +02:00
63ec1f4f9d
fix for ghost trigger (again)
2018-07-29 21:27:04 +02:00
ea4be4d1b1
execute operator warns now if current frame is not on cache startframe
2018-07-28 23:45:07 +02:00
f811c08407
restore ghost stop trigger functionality
2018-07-28 13:05:28 +02:00
0f15570266
attempt to fix incorrect (bbox) triggering behavior
2018-07-27 17:04:42 +02:00
b82de8463b
do not set edges of selected faces to sharp in external mode
...
because in most cases only existing objects are packed into the FM mesh, and no fracturing happens,
where you want to set fracture edges to sharp.
2018-06-25 16:50:42 +02:00
1d880e8e0b
enable angular limit/stiffness/damping settings for plastic constraints
...
in fact, only forgot to uncomment
2018-06-23 16:21:43 +02:00
9a21afd18d
fix for cmake failing to detect VS 2017 properly
2018-05-24 23:55:19 +02:00
d3b52a6cbc
added ghost stop triggers
...
stopped shards also will get their constraints disabled and still attached partners will be stopped too
2018-05-24 14:45:27 +02:00
da4854a8b8
missed in last commit: rise BM_OMPLIMIT to avoid overheads with small datasets
2018-05-02 20:45:37 +02:00
f3ce2881c3
fix a clang warning, fix an improper initialisation for gcc, remove nonfunctional omp, rise BM_OMPLIMIT to avoid overheads with small datasets
2018-05-02 20:41:56 +02:00
dac9244425
crash fix for changing shardcount and refracture when doing automerge
...
forgot to refresh the merge data before merging, after refracturing
2018-04-25 22:09:25 +02:00
192ae864f4
added isIntact() query to regular rigidbody constraints, too
2018-04-25 14:17:26 +02:00
18ba072f17
immediately take constraint limit changes into account during rigidbody simulation
2018-04-17 14:55:27 +02:00
d451c4e831
fix for setting lower x linear limit
2018-04-15 12:57:56 +02:00
16ccab4748
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.79b-release' into fracture_modifier
2018-04-14 20:53:09 +02:00
f4dc9f9d68
Fix T54360: FFMPEG bitrate not editable for all codecs
...
The bitrate selection was hidden when a CRF mode was chosen and then
switched to a codec that doesn't support CRF.
2018-03-22 15:10:42 +01:00
6f07673ce4
Fix compilation error
...
Recent fix was assuming some cleanup is done.
2018-03-22 09:56:06 +01:00
150dee260e
Update addons submodule hash
2018-03-22 09:51:05 +01:00
55872de560
Fix T54234, add BLENDER_VERSION_CHAR to .plist
2018-03-22 09:48:31 +01:00
6bf458dfff
Fixed: cache clearing when using multiple Alembic files.
2018-03-22 09:44:12 +01:00
61c3317688
Cleanup: Use more python way of checking boolean
2018-03-22 09:41:22 +01:00
0253b16180
Tracking: Make object created form tracks active and selected
2018-03-22 09:41:18 +01:00
3ed28ccb93
Tracking: Warn when no tracks are selected when creating mesh
...
Makes it more clear why mesh was not created this way.
Fixes T54368: 3D markers to mesh In MovieClipEditor Not working.
2018-03-22 09:41:10 +01:00
d791f3522e
Fix T54348: Bone dissolve gives invalid hierarchy
...
Disconnected bones weren't handled correctly.
2018-03-22 09:39:11 +01:00
557e1b02de
Fix bone dissolve using wrong envelope radius
...
Also correctly copy bone tip selection when dissolving.
2018-03-22 09:38:47 +01:00
5da3aecefd
Fix T53478, T53430: Sequencer cut edge case fails
...
Previous fix for T53430 caused T54200.
The edge case for soft & hard cuts weren't working,
where the strip used start/end-still & the frame was placed exactly on
the start/end of of the sequence content.
T54200 fixed the end-still case but broke hard-cuts for all other cases.
This fixes the case for soft/hard cuts with/without start/end-still.
2018-03-19 11:36:25 +01:00
241c142248
Revert "Fix T53430: Cut at the strip end fails w/ endstill"
...
This reverts commit 855799ecc1
.
Caused T54200
2018-03-19 11:36:18 +01:00
c5db594b92
Error passing context arg to marker menu
...
own mistake in 6981861fcf
2018-03-19 11:36:11 +01:00
e57a1bb86b
API generating script: give better version for releases builds.
...
Was giving '2.62.1 <sha1>' even for releases, now rather giving nicer
'2.62a <sha1>' in that case.
2018-03-19 11:36:02 +01:00
4697e491b4
Fix T54206: bevel and inset operations repeat did not remember offset.
...
Now repeating the operator will use the previously chosen offset, either with
the modal operator or typed in. The modal operator will still start at zero.
2018-03-19 11:35:55 +01:00
852d63b835
Fix T54204: Wrong selection on Clean Tracks (Motion Tracking)
...
A mistake in a fix for T53612.
Regression in 2.79a, candidate for 2.79b :S
2018-03-19 11:35:46 +01:00
8ec398d401
Fix T54003: Particles - Size and random size not present in "physics" tab in Advanced mode
...
The check to see if `use_advanced_hair` was enabled was actually in two places
(render panel `draw` function and physics panel `poll` function). As these
properties are only in one place now the check in `draw` isn't needed anymore.
Related: T53513, a6c69ca57f
2018-03-19 11:35:20 +01:00
9accd8852b
Bl;ender 2.79b: Begin 2.79b release cycle
2018-03-19 11:33:15 +01:00
c381b3fadc
added vertexgroup to influence metaball radii
...
note, the weight (0...1) is normed to a size factor -0.5 ... 0.5 to also allow negative mball elements.
2018-02-28 17:54:10 +01:00
3cc1faf118
when sorting objects, keep mi->object_index aligned
2018-02-25 19:48:05 +01:00
d39fb8ffbb
activate by constraint impulse and regular ghost triggers
2018-02-25 15:46:40 +01:00
930b6a0540
rna build fix (error when building debug)
2018-02-25 00:02:38 +01:00
882cf08e5e
only calc FM mblur velocity layer at render time
...
this costs some performance
2018-02-24 17:32:50 +01:00
fb8acd8b33
optionally restore old activation behavior with broken constraints
...
this allows easier breaking / collapsing of objects
2018-02-24 11:20:44 +01:00
e88359152a
compile fixes after merge
2018-02-22 13:03:08 +01:00
fb4fcd6e01
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.79a-release' into fracture_modifier
...
Conflicts:
source/blender/modifiers/intern/MOD_boolean.c
2018-02-22 13:02:34 +01:00
ae358f92e6
fix, anim bind rotation was calculated incorrectly
2018-02-20 13:45:53 +01:00
db0f53ae3c
fix for bind ngon problems (jumping rotations)
2018-02-19 18:46:30 +01:00
750798a777
crash fix for deleting connected objects before its connectors
2018-02-18 11:20:39 +01:00
76dfe5f0b4
crash fix for FM objects being copied after connect
2018-02-18 02:31:37 +01:00
446ed1c516
rigidbody sort fix for external constraints
2018-02-18 00:51:05 +01:00
4e1c31ca7b
crash fix for external constraints
...
ensure refresh of "parent" FM object on every refresh of connected objects, also ensure evaluation order in rigidbody.c / bullet (parent always after children)
2018-02-17 13:42:26 +01:00
748ada90b5
further constraint related crash fixes
2018-02-14 21:04:00 +01:00
6868e0a7d9
crash fix attempts
...
can still crash if you refracture a child object while its attached to others (constraints become invalid)
2018-02-14 20:26:07 +01:00
6249febf45
re-implementation of external constraints
2018-02-14 18:41:30 +01:00
d16510425f
external constraints load / refresh fix
2018-02-13 19:17:52 +01:00
c491b50139
fix potential memory leak
2018-02-13 18:19:18 +01:00
4eb44b8610
another implementation attempt for external constraints
2018-02-13 18:07:41 +01:00
97a677e788
first attempt of brickify fracture
2018-02-12 22:19:07 +01:00
c3d5668516
fix for "double rotation" in bind
...
if both objects were rotated, rotations were added up unnecessarily.
2018-02-11 10:58:44 +01:00
032b14a951
fractal boolean with regular alignment, animation bind tweaks
2018-02-10 23:50:25 +01:00
f29a691fb4
inner material is part of presets now
2018-02-09 17:40:31 +01:00
ea82f4ce4e
fix an ffmpeg qtrle crasher
2018-02-04 22:21:20 +01:00
f5ef3a7d81
animation bind rotation fix, some dynamic mode fixes
2018-01-29 20:51:25 +01:00
8fedf97883
improved rotation calculation in bind animated mesh
2018-01-26 00:08:41 +01:00
0859c99bf2
fix for loading crash with dynamic fracture
...
forgot to copy the fracmesh, but this now might increase mem usage
2018-01-25 16:08:25 +01:00
95a31c8a3a
fix attempt for split shard to island crashes
...
customdata was incorrectly freed and corrupted the memory
2018-01-24 14:28:36 +01:00
d68f53a3f3
added a limit / searchradius for animated mesh binding
...
bind operator now clears the simulation cache too
2018-01-23 18:05:14 +01:00
da98a2c5ff
forgot to include workaround for changing vertex counts
2018-01-22 22:42:41 +01:00
3691bf1a20
fix attempt for bind animated mesh
2018-01-22 21:33:31 +01:00
82f7726549
crash fix at fracturing, customdata layer index handlng was incorrect
2018-01-19 21:30:23 +01:00
8fd65dc0e9
corrected some more special constraint breaking activation behavior (was activating too much)
2018-01-17 00:12:49 +01:00
022d64008e
small transform fix for animated mesh binding
2018-01-15 16:55:29 +01:00
7ef50296e0
some corrective changes in special breaking activation behavior
2018-01-14 20:13:53 +01:00
80671518eb
put animated mesh settings to new panel, some fixes
2018-01-14 20:12:53 +01:00
db72a8a6e0
fix for binding, should leave no shards behind now
2018-01-14 01:34:12 +01:00
758d7350d6
fixes for bind animated mesh: transform and jump issues
2018-01-13 00:39:18 +01:00
2a41da1d91
experimental bind of animated vertices (other object) to shards
...
this transfers vertex motion during simulation and allows some kind of "deformation" of the fractured mesh, without
refracturing it
2018-01-12 13:15:22 +01:00
ee7042173c
fixed a crasher when moving an object in dynamic fracture and when attempting to undo/redo FM removal
2018-01-10 22:00:45 +01:00
91ea5336a5
removed some performance-deadly reallocs in remesher
...
remesher now atleast responds again to user input and runs with 0.6fps with 60^3 particles
2018-01-10 04:09:54 +01:00
7622563ae3
mblur for fm use centroids / use vertices was missing on remesher, some crash fixes
2018-01-05 00:00:01 +01:00
facc7658db
crash fixes, was accessing non-existing layers
2018-01-04 20:44:02 +01:00
054d6d7ac3
deform motionblur support for FM and remesher with variable topology
...
furthermore some tweaks to final solid mesh generation and trigger stuff
option to only output particles as vertexcloud in remesher
2018-01-04 19:32:13 +01:00
71ffddfa0f
fixed some crashers
2018-01-04 02:38:18 +01:00
ad2e6534cc
first attempt of deform mblur with remeshed particles, but it still has issues
2018-01-04 02:08:44 +01:00
08cd50dcde
crash fix in updateAccelerationMap, forgot to check for dm being null
2018-01-03 17:24:32 +01:00
d88b0ac261
fix for transformation issue with particle remeshing
2018-01-03 16:26:44 +01:00
7735128993
fix for presets, forgot some commas
2018-01-03 16:07:12 +01:00
c616dd58c6
minor fix for collision problem with mesh
2017-12-31 01:57:54 +01:00
ce058207fc
acceleration maps are kinda hard to get right... another attempt
2017-12-30 11:37:31 +01:00
1dbaf88150
fix, possibly return an empty mesh and default psys index is 1 now
2017-12-30 02:14:52 +01:00
1151442204
fix for randomized particle sizes
...
was accessing wrong indexes after particles died
2017-12-30 01:28:43 +01:00
d165b13ee4
added override with particle size option to mball remesher
2017-12-29 21:54:02 +01:00
4945003ffd
remesh modifier can now remesh particle systems as well
2017-12-29 20:38:53 +01:00
23a9504df1
small fixes for acceleration map
2017-12-29 02:07:29 +01:00
026b847bd9
refactored acceleration map, but might still have issues
...
also attempted to improve triggering (make exacter, but slow and error prone)
2017-12-29 01:46:36 +01:00
e8c6f05eba
fix attempt for acceleration map... still issues
2017-12-28 00:17:45 +01:00
656ab1cf6a
reworked the bake correction method, some smaller fixes
...
shuffling happens now across all individual rigidbodies
2017-12-27 19:47:47 +01:00
1da64c2540
fixes for acceleration map
2017-12-26 23:07:21 +01:00
24f93213f2
invalidate rigidbody cache/bake if rigidbody objects are duplicated or deleted as well
2017-12-26 21:15:01 +01:00
c77878abab
added final solid mesh source for mesh, some sphere margin fixes
2017-12-26 17:40:40 +01:00
16f161e5f6
added acceleration maps which should be also be usable in playback
2017-12-25 23:30:15 +01:00
9bf8ba16c2
added an acceleration map (vgroup), some remesher fixes
2017-12-25 16:45:27 +01:00
01a589c0af
tweak of value display in FM UI
2017-12-25 14:13:16 +01:00
3d3ece2c67
fix for collision condition, it failed for regular case
2017-12-25 14:12:45 +01:00
df7d0e5423
extended the remesh modifier by a metaball mode
2017-12-25 01:12:23 +01:00
dbd1212dfb
rearranged some FM Properties in UI
2017-12-24 20:50:31 +01:00
a96832cd21
fixes for cluster constraint island detection and a couple of minor fixes in fracture RNA
2017-12-24 20:49:25 +01:00
7babce3052
added "self collision" option for constraint islands, and randomize option for sphere shape radius and margin
2017-12-24 16:05:08 +01:00
95ae90cab0
sphere shape now takes its margin into account too, allow also negative margin now (optionally)
2017-12-23 15:15:45 +01:00
93bf8fc8e1
now fixing shard order problems directly after loading and jumping to another frame as well
2017-12-23 01:25:00 +01:00
1010cdf421
added option to only output verts, meta threshold max is 100 now
2017-12-21 17:12:17 +01:00
fc58dbc186
do not invalidate cache when enabling / disabling centroid output
2017-12-21 15:14:44 +01:00
e8958954ba
added option to only output centroids as vertices
...
might be useful in conjunction with duplicated metaballs to have simple fluid-like behavior
2017-12-21 12:59:03 +01:00
fa7a666e2b
added grid fracture option, removed rigidbody shape drawing with fm, alembic importer fix
2017-12-19 23:09:01 +01:00
4bc10e6a81
allow rigidbody being a forcefield effector too
...
this was disabled intentionally for some unknown reason
2017-12-16 16:09:37 +01:00
aacada54f8
fix, threshold and cluster threshold application was swapped
2017-12-15 22:23:38 +01:00
d99e1dc283
exposed meshisland constraints and modifier vertex groups to python
...
this was done to enable a new feature in the addon, the cluster editor.
2017-12-15 16:34:48 +01:00
c5e7265b1e
fix for infinite recursion with cluster percentage activation
...
also remove kinematic state of stopped shards (if object is triggered and not kinematic) at start frame now
2017-11-16 20:28:39 +01:00
57d70b3c87
fix for autogenerating inner material, just append at the end of the stack instead taking always the 2nd one
2017-10-08 21:42:48 +02:00
d13f6ae2bf
fix: separated comparison angle/distance for break/deform, propagate weakened threshold now
2017-10-07 19:59:44 +02:00
28f2865cfa
added some previously missing tooltips
2017-09-26 14:01:20 +02:00
993c98779c
increased UI digits precision to 5 for almost all FM float RNA properties
...
exception are properties which had higher precision even
2017-09-17 17:39:30 +02:00
3955fb3dcc
compile fixes after merge
2017-09-12 13:26:30 +02:00
8c97b99daf
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.79-release' into fracture_modifier
...
Conflicts:
source/blender/blenkernel/intern/rigidbody.c
2017-09-12 13:25:40 +02:00
fa859b0d72
only break constraints with threshold >= 0
2017-09-12 12:36:00 +02:00
c79f216066
fix for angle calculation due to usage of initially rotated rigidbodies in external mode
2017-08-28 16:27:48 +02:00
be7ef0060f
fix for initial rotation in convert to object and convert to keyframes
2017-08-24 11:39:09 +02:00
e6341b5107
fix for rotated box shapes in external mode + print -1 for unbreakable threshold in phys viz
2017-08-24 10:30:28 +02:00
b25b4c550e
use areabased centroid calculation again for shards + small fix in loading routine
...
new volumebased method gave incorrect results with nonmanifolds
2017-08-22 14:48:24 +02:00
d273e2002c
added an automerge distortion cache
2017-08-22 12:37:53 +02:00
612030983d
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.79-release' into fracture_modifier
2017-08-21 15:21:13 +02:00
d7b094a807
fix attempt for "merge cache"
2017-08-18 18:45:25 +02:00
48da381e37
another fix attempt to get the masses right
2017-08-17 22:50:13 +02:00
afa33574de
fixes for centroid and volume calculation for non-manifolds, fix attempt for storage of merge info
2017-08-17 17:34:37 +02:00
78b3061c32
fix attempt for avoiding incorrect inner collisions between constrained objects
2017-08-16 01:20:11 +02:00
f233ecd511
use exact volume calculation for convexhull and mesh when calculating masses of initial objects only
2017-08-15 03:26:44 +02:00
63ad55f295
fixes for FM mesh island rigidbody path problem and volume calculation
...
scaling was ignored and only half of the dimensions for the volume were used, thus the calculated mass was 1/8th of the
correct mass.
2017-08-15 02:52:59 +02:00
e3e6270241
fix, forgot to set angular spring stiffness and damping when converting to objects
2017-08-14 15:47:29 +02:00
155f2a4a52
fix for break of rigidbody behavior after 2.78c and stoptriggers are speed-dependent now
2017-08-13 13:20:08 +02:00
8af66d6088
versioning fixes for angular spring stiffness / damping and exposed those to FM python api
2017-08-13 01:39:10 +02:00
f68da08a05
fix for initial kinematic state after triggering and jumping back to startframe
2017-08-13 01:00:45 +02:00
97dd7b540f
compile fixes after merge
2017-08-12 22:48:47 +02:00
86da0f4749
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.79-release' into fracture_modifier
...
Conflicts:
build_files/buildbot/slave_compile.py
build_files/cmake/buildinfo.cmake
build_files/cmake/config/blender_release.cmake
build_files/cmake/macros.cmake
build_files/cmake/packaging.cmake
build_files/cmake/platform/platform_win32_msvc.cmake
doc/python_api/sphinx_doc_gen.py
doc/python_api/sphinx_doc_update.py
intern/atomic/atomic_ops.h
intern/atomic/intern/atomic_ops_ext.h
intern/atomic/intern/atomic_ops_unix.h
intern/cycles/CMakeLists.txt
intern/cycles/blender/addon/properties.py
intern/cycles/blender/addon/ui.py
intern/cycles/blender/blender_mesh.cpp
intern/cycles/blender/blender_object.cpp
intern/cycles/blender/blender_object_cull.cpp
intern/cycles/blender/blender_object_cull.h
intern/cycles/blender/blender_python.cpp
intern/cycles/blender/blender_session.cpp
intern/cycles/blender/blender_session.h
intern/cycles/blender/blender_shader.cpp
intern/cycles/blender/blender_util.h
intern/cycles/bvh/bvh.cpp
intern/cycles/bvh/bvh.h
intern/cycles/bvh/bvh_build.cpp
intern/cycles/bvh/bvh_node.h
intern/cycles/device/device.cpp
intern/cycles/device/device.h
intern/cycles/device/device_cpu.cpp
intern/cycles/device/device_cuda.cpp
intern/cycles/device/device_opencl.cpp
intern/cycles/device/device_task.cpp
intern/cycles/device/opencl/opencl.h
intern/cycles/device/opencl/opencl_base.cpp
intern/cycles/device/opencl/opencl_mega.cpp
intern/cycles/device/opencl/opencl_split.cpp
intern/cycles/device/opencl/opencl_util.cpp
intern/cycles/kernel/bvh/bvh.h
intern/cycles/kernel/bvh/bvh_nodes.h
intern/cycles/kernel/bvh/bvh_shadow_all.h
intern/cycles/kernel/bvh/bvh_volume_all.h
intern/cycles/kernel/bvh/qbvh_shadow_all.h
intern/cycles/kernel/bvh/qbvh_subsurface.h
intern/cycles/kernel/bvh/qbvh_traversal.h
intern/cycles/kernel/bvh/qbvh_volume.h
intern/cycles/kernel/bvh/qbvh_volume_all.h
intern/cycles/kernel/closure/bsdf.h
intern/cycles/kernel/closure/bsdf_microfacet.h
intern/cycles/kernel/closure/bsdf_microfacet_multi.h
intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h
intern/cycles/kernel/geom/geom.h
intern/cycles/kernel/geom/geom_curve.h
intern/cycles/kernel/geom/geom_motion_curve.h
intern/cycles/kernel/geom/geom_motion_triangle_intersect.h
intern/cycles/kernel/geom/geom_motion_triangle_shader.h
intern/cycles/kernel/geom/geom_object.h
intern/cycles/kernel/geom/geom_triangle.h
intern/cycles/kernel/geom/geom_triangle_intersect.h
intern/cycles/kernel/geom/geom_volume.h
intern/cycles/kernel/kernel_accumulate.h
intern/cycles/kernel/kernel_bake.h
intern/cycles/kernel/kernel_compat_cpu.h
intern/cycles/kernel/kernel_compat_cuda.h
intern/cycles/kernel/kernel_emission.h
intern/cycles/kernel/kernel_image_opencl.h
intern/cycles/kernel/kernel_light.h
intern/cycles/kernel/kernel_passes.h
intern/cycles/kernel/kernel_path.h
intern/cycles/kernel/kernel_path_branched.h
intern/cycles/kernel/kernel_path_common.h
intern/cycles/kernel/kernel_path_surface.h
intern/cycles/kernel/kernel_path_volume.h
intern/cycles/kernel/kernel_random.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/kernel_shadow.h
intern/cycles/kernel/kernel_subsurface.h
intern/cycles/kernel/kernel_textures.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/kernel_volume.h
intern/cycles/kernel/kernels/cpu/kernel_avx.cpp
intern/cycles/kernel/kernels/cpu/kernel_avx2.cpp
intern/cycles/kernel/kernels/opencl/kernel.cl
intern/cycles/kernel/split/kernel_background_buffer_update.h
intern/cycles/kernel/split/kernel_data_init.h
intern/cycles/kernel/split/kernel_direct_lighting.h
intern/cycles/kernel/split/kernel_holdout_emission_blurring_pathtermination_ao.h
intern/cycles/kernel/split/kernel_next_iteration_setup.h
intern/cycles/kernel/split/kernel_scene_intersect.h
intern/cycles/kernel/split/kernel_split_common.h
intern/cycles/kernel/svm/svm_displace.h
intern/cycles/kernel/svm/svm_image.h
intern/cycles/kernel/svm/svm_tex_coord.h
intern/cycles/render/buffers.cpp
intern/cycles/render/graph.cpp
intern/cycles/render/graph.h
intern/cycles/render/image.cpp
intern/cycles/render/image.h
intern/cycles/render/mesh_subdivision.cpp
intern/cycles/render/osl.cpp
intern/cycles/render/session.cpp
intern/cycles/render/session.h
intern/cycles/render/svm.cpp
intern/cycles/render/svm.h
intern/cycles/render/tile.cpp
intern/cycles/render/tile.h
intern/cycles/util/util_atomic.h
intern/cycles/util/util_boundbox.h
intern/cycles/util/util_half.h
intern/cycles/util/util_image.h
intern/cycles/util/util_image_impl.h
intern/cycles/util/util_math.h
intern/cycles/util/util_path.cpp
intern/cycles/util/util_progress.h
intern/cycles/util/util_simd.h
intern/cycles/util/util_task.cpp
intern/cycles/util/util_types.h
intern/ghost/intern/GHOST_SystemCocoa.mm
make.bat
release/datafiles/locale
release/scripts/addons
release/scripts/presets/interface_theme/24x_blues.xml
release/scripts/presets/interface_theme/flatty_light.xml
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/space_userpref.py
source/blender/blenkernel/BKE_library_query.h
source/blender/blenkernel/BKE_sca.h
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/armature.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/library_query.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenkernel/intern/sca.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/blenlib/intern/task.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/writefile.c
source/blender/collada/ArmatureImporter.cpp
source/blender/depsgraph/DEG_depsgraph_build.h
source/blender/depsgraph/intern/builder/deg_builder.cc
source/blender/depsgraph/intern/builder/deg_builder_cycle.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes.h
source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes_scene.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.h
source/blender/depsgraph/intern/builder/deg_builder_relations_keys.cc
source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
source/blender/depsgraph/intern/builder/deg_builder_relations_scene.cc
source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc
source/blender/depsgraph/intern/depsgraph.h
source/blender/depsgraph/intern/depsgraph_build.cc
source/blender/depsgraph/intern/depsgraph_eval.cc
source/blender/depsgraph/intern/eval/deg_eval.cc
source/blender/depsgraph/intern/eval/deg_eval_debug.cc
source/blender/depsgraph/intern/nodes/deg_node.cc
source/blender/depsgraph/intern/nodes/deg_node.h
source/blender/depsgraph/intern/nodes/deg_node_component.cc
source/blender/depsgraph/intern/nodes/deg_node_component.h
source/blender/depsgraph/intern/nodes/deg_node_operation.cc
source/blender/depsgraph/util/deg_util_foreach.h
source/blender/editors/animation/anim_channels_defines.c
source/blender/editors/animation/anim_draw.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/interface/interface_layout.c
source/blender/editors/object/object_modifier.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/transform/transform_snap_object.c
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/makesdna/DNA_ID.h
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesdna/DNA_rigidbody_types.h
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_ID.c
source/blender/makesrna/intern/rna_main.c
source/blender/makesrna/intern/rna_main_api.c
source/blender/makesrna/intern/rna_mesh_api.c
source/blender/makesrna/intern/rna_modifier.c
source/blender/makesrna/intern/rna_render.c
source/blender/makesrna/intern/rna_rigidbody.c
source/blender/makesrna/intern/rna_userdef.c
source/blender/makesrna/intern/rna_wm_api.c
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_boolean.c
source/blender/modifiers/intern/MOD_normal_edit.c
source/blender/modifiers/intern/MOD_util.c
source/blender/nodes/shader/nodes/node_shader_tex_brick.c
source/blender/python/intern/bpy_rna_id_collection.c
source/blender/render/extern/include/RE_pipeline.h
source/blender/render/intern/source/render_result.c
source/creator/CMakeLists.txt
tests/gtests/CMakeLists.txt
tests/gtests/blenlib/BLI_string_test.cc
tests/python/CMakeLists.txt
2017-08-12 22:48:17 +02:00
5c9626721b
reordered all FM related functions to the end of file
2017-08-12 16:28:18 +02:00
474ae3e5f9
renamed "Anti-Trigger" to "Stop Trigger" in python and UI now
2017-08-10 19:21:35 +02:00
3bdb65f5ed
performance regression fix which reduces some static-static collision checking
2017-08-10 18:55:07 +02:00
39330a3e62
reworked the trigger system to work in narrowphase of bullet (more exact shapes)
2017-08-09 22:18:03 +02:00
0e7fb6d0bd
support for "anti-triggers" which stop movement of active rigidbody shards
2017-08-09 15:30:00 +02:00
1d57779c20
using quaternions and correction of quaternion sign flips for convert to keyframes now
2017-08-08 01:26:25 +02:00
a4c953bf04
attempt to reduce memory usage with dynamic fracture
...
but somewhere a memory leak is still present there
2017-08-07 17:58:04 +02:00
be6e39da29
minor fix: forgot to update frame in display when converting to keyframes
2017-08-05 20:05:36 +02:00
91f02a80f5
fix for wrong centroid calculation when re-using existing mesh-islands
...
this affected the physics mesh and the convert to keyframes function, which created incorrect results.
2017-08-05 19:22:13 +02:00
8e21378e05
take position for constraint between both rigidbodies for fixed constraints now, too
2017-06-21 14:48:34 +02:00
04896acd69
skip exceeded verts in average coord calculation in keep distort mode now too
2017-06-20 22:24:33 +02:00
5909d32aec
allow a bit "cleaner" cut edges when keep distort is not set, else they keep jaggy
2017-06-20 16:59:01 +02:00
a8510408b9
added deform weakening factor
...
the threshold is multiplied with 1.0-fac per deform iteration, so it can automatically break at some point.
2017-06-18 19:25:57 +02:00
256aeb213a
added additional distances and angles settings in order to control plastic deform better
2017-06-18 17:20:38 +02:00
e3cdc36429
refinement for plastic deformation
2017-06-18 13:41:38 +02:00
3294959446
attempt to have "plastic" constraint deform by re-constraining via angle, distance
...
deformation mode happens when breakable is set to false, but angle or distance is set
2017-06-18 11:08:21 +02:00
dfbcbaf7eb
fix attempt for memory leak after loading FM blends in prefractured mode
...
note: works only with newly saved FM files, older still have unnecessary data in them which wont be automatically cleaned
2017-06-17 21:08:54 +02:00
00054e28a4
do not check constraint islands in case constraint collision is activated (allow self collision)
2017-06-16 23:00:05 +02:00
b025e3b36a
check for availability of "constraint_type" in DNA struct, if not there set default value "fixed"
2017-06-16 22:00:37 +02:00
e1ea9a4afd
added constraint type setting for FM constraints
...
previously there was only a cluster constraint setting
2017-06-16 18:43:15 +02:00
64ada2985f
added Dissolve plastic constraints option, only relevant for external mode
2017-06-16 12:21:02 +02:00
c802ddb2a4
allow triggering in external mode too
2017-06-15 17:05:37 +02:00
8dc440e900
fix for distortion, should avoid snapping back of geometry
2017-06-14 22:51:13 +02:00
5caefc95a7
refactor of automerge shared vertex handling function
2017-06-14 20:55:26 +02:00
55aa21bb16
fix attempt for uncontrolled "snapping" when using keep distort
2017-06-14 19:33:30 +02:00
dce6a36932
crash fix for linking FM scene as background scene with automerge
2017-06-14 12:48:27 +02:00
afa2287ea3
fix, do not recalculate autohide when only changing automerge dist
2017-06-14 12:23:56 +02:00
d5213d70b7
performance improvement for packing many islands, avoided unnecessary listbase findlink
2017-06-14 00:02:15 +02:00
a99e840151
crash fix and minor tweaks for external mode (setting expected defaults)
2017-06-13 23:28:24 +02:00
4b560f14d7
further fixes for external mode
2017-06-13 22:37:36 +02:00
c3c488e475
fix for handling of uvs when packing objects into fracture modifier
2017-06-13 19:26:03 +02:00
2df9e4909c
reset automerge (distortion, exceeded) in external mode now too on startframe
2017-06-12 12:16:55 +02:00
1941be005d
more tweaks for automerge
2017-06-12 11:29:27 +02:00
2b63854ec1
allow autohide / automerge for external mode too, and some tweaks for shared vert group optimization
2017-06-12 01:40:00 +02:00
9ae6823841
disabled "optimization attempt" for automerge again, did not bring much performance and caused visual errors
2017-06-11 18:43:36 +02:00
b8cb539f2c
fix for old dynamic external mode
2017-06-11 18:16:19 +02:00
83144efb4d
further automerge speed optimization attempts
2017-06-11 17:48:45 +02:00
4670d18474
use separate storage for packed geometry, allows mode switching and re-use of it
2017-06-11 11:49:50 +02:00
8fe651325c
recalc normals when merging (distance>0) and not using fix normals
2017-06-10 21:58:25 +02:00
9c2ca73575
clamped distortion and keep shared groups with autohide distance = 0 as well
2017-06-10 21:40:53 +02:00
170007cc4f
fix for automerge, with bisect / fast bisect recalc normals on merge, also no redundant shared groups any more
2017-06-10 19:49:45 +02:00
03c11e58a9
crash fix when using ob->derivedFinal for a bbox calculation, needed to check its validity better
2017-06-08 16:50:23 +02:00
fcff61a1bd
made do_merge and keep_distort optional
2017-06-08 15:40:20 +02:00
bb9f2e4037
keep distorted shape after tearing, todo, make this optional ?
2017-06-08 14:25:34 +02:00
1b19fea008
tweak for inner crease, only appear on torn edges
2017-06-08 13:19:39 +02:00
b1d786de2c
fix for automerge, do not snap together after exceeding threshold, and adding optionally crease to edges, too
2017-06-08 13:00:47 +02:00
4d8b238e4b
first attempt for better automerging
2017-06-08 01:15:16 +02:00
e041ca68e1
fix for packing materials, material index start value could overflow due to being a short instead of int
2017-06-07 18:08:43 +02:00
51a088cbea
also store material index in shards, so it can be loaded from blend later
2017-06-07 16:15:39 +02:00
05e4103ba4
fix for material assignment when converting back to objects
2017-06-07 16:08:55 +02:00
0812e32572
prefer vector handle on adaptive keyframe in convert to keyframed objects
2017-06-04 19:59:32 +02:00
76e114180d
fix attempt for particle systems supporting dynamicly changing vertexgroups
2017-06-04 19:35:26 +02:00
948ad8e88b
crash fix and attempt to reduce unnecessary memory usage
2017-06-04 00:55:19 +02:00
b25edc6352
set allowed smoke timescale from 0.0 to 2.0, thus allow static and a bit faster smoke as well
2017-06-03 19:58:00 +02:00
15b3b2bdcd
minor tweak, just activate clusters and keep inter-cluster constraints intact in that case
2017-06-02 15:41:03 +02:00
56f42dacd2
fix for cluster percentage, was incorrectly calculated before and only used if regular percentage was set
2017-06-02 10:02:50 +02:00
a293d028b9
new "Handle" option for convert to keyframes, if set calculates handles to be auto or vector(adaptive), but can be slower
2017-06-01 12:42:32 +02:00
899c2b921c
further optimization attempts with convert to keyframed objects
2017-05-31 20:43:47 +02:00
b7327017a0
fix for convert to keyframes, needs no bake and should be initialized properly after refracture
2017-05-31 13:41:18 +02:00
fe95515de0
performance improvement with convert to keyframes and new adaptive keyframe option (threshold of changes)
2017-05-30 17:44:18 +02:00
b7f7879ad2
added step option to convert to keyframes, new parameter popup dialog, also backported fseek fix to meshcache modifier
2017-05-29 21:33:40 +02:00
f6924b23bf
fix for loading bakes from official build (single objects)
...
also reverted from exact volume calculation of shards to bbox (faster)
removed some development printouts
2017-05-22 19:28:30 +02:00
2f6f36ef5a
added rectangular alignment feature for fast bisect (works with uniform only)
...
the closer the factor is to 1, the more rectangular-ish the shards will look like. default is 0 which means any rotation is allowed.
2017-05-12 17:48:34 +02:00
ad99d53b8a
fix for jumps in rotation when converting to keyframed objects
2017-04-21 13:14:08 +02:00
a9e14e1018
crash fix for physical rough edges (corrupted memory)
2017-03-29 20:55:48 +02:00
0decb16563
do not execute refresh operator in running sim any more
2017-03-28 21:38:59 +02:00
6806065c38
apparently fixed the cuttergroup bug (was an incorrect bbox test) + silenced 2 warnings
2017-03-28 18:35:27 +02:00
e8f0228977
fix attempt for numerical instabilty with cuttergroups + a couple of minor fixes
...
as workaround you could use particlehelper and uniform together with cuttergroups
2017-03-28 17:41:49 +02:00
65c86fc66b
load crash fix if FM is there but hasnt been executed prior to save
2017-03-15 20:55:42 +01:00
5bac7e5ac7
fix for loading cutter group fractures and allow all algorithms now in combination with cuttergroup
2017-03-15 17:36:25 +01:00
5f56257713
added basic material handling and outputting vertexgroups for intersect/difference shards with cuttergroups
2017-03-12 13:11:52 +01:00
e63c6cd345
fix attempt for passive fakeparenting with dynamic/external, and first version of combined cuttergroup and procedural (boolean only) fracture
2017-03-11 18:52:01 +01:00
30acaddb6c
fixes for constraint behavior in dynamic_external mode
2017-03-07 21:34:12 +01:00
3b0646b3ac
dissolve constraint now only dissolves constraints between different clusters if clusters are used
...
additionally added a python-settable variable to indicate whether the dynamic fracture data has been loaded externally or not (just set it from the handler)
2017-03-07 16:41:09 +01:00
cd6e18db8a
added handlers which are triggered after freeing shards and before rebuilding constraints
...
this is supposed to keep externally loaded data in place when changing over to dynamic fracture, the handler triggers a python script which populates the meshislands and another to populate the constraints via the FM python API.
Additionally a couple of minor fixes for dynamic fracturing.
2017-03-06 19:24:55 +01:00
57a1e434e5
fix for hair particle system, was wrong hair distribution and render error
...
suppressed "dynamic" particle redistribution for hair now too
2017-03-03 13:19:57 +01:00
a34e295b68
fix, forgot to copy splinter axis when duplicating FM object
2017-02-26 21:18:45 +01:00
c073d3e8a4
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.78c-release' into fracture_modifier
2017-02-25 15:44:10 +01:00
bc27652e57
tests: Update hash for OBJ
...
Was a recent update of UV precision.
2017-02-23 18:04:00 +01:00
27167ee3a4
Cycles: Fix compilation error on 32bit Linux
2017-02-23 17:30:54 +01:00
551265424b
Fix T50243: libmv_panography_test is broken
...
There was fully wrong logic in comparison: was actually accessing memory
past the array boundary. Run test manually and the figure seems correct
to me now.
Spotted by @LazyDodo , thanks!
2017-02-23 17:18:03 +01:00
15fb1fdb99
[msvc] Set proper OpenSubdiv flags when not using find_package to find opensubdiv. Fixes T50548
2017-02-23 16:21:16 +01:00
7d77dcd190
Blender 2.78c: Officially move to 'c'
2017-02-23 16:07:47 +01:00
909c8ec07a
Cycles: Fix wrong render results with texture limit and half-float textures
2017-02-23 15:07:45 +01:00
b95645c1ae
Fix T50748: Render Time incorrect when refreshing rendered preview in GPU mode
2017-02-23 15:07:02 +01:00
67169e70d6
Fix T50687: Cycles baking time estimate and progress bar doesn't work / progress when baking with high samples
2017-02-22 16:58:37 +01:00
e89145efd3
Fix T50512: Linked Backround scene with animation not updating with new depsgraph
...
Was missing relations for the set scenes.
Perhaps not ideal solution, but should be good enough for now.
2017-02-22 16:48:48 +01:00
dd2e33b24d
Blender 2.78c: Fix crash with material preview and image sequences
...
Don't use built-in API for image sequences since it's not really
finished in RNA API.
Fixes issue reported in T50616.
2017-02-22 16:46:00 +01:00
99abd1f79e
Blender 2.78c: Fix wrong render result with pointiness
...
The issue was caused by pointiness being calculated after
faces split now. Ported all fixes we did here.
Should be safe, pointiness is used all over the barbershop.
2017-02-22 16:34:10 +01:00
92e75a54f4
Cleanup
2017-02-22 15:57:41 +01:00
8ba1dab3a2
Blender 2.78c: Fix Brick Texture GLSL, broken after Mortar Smooth addition.
2017-02-22 15:33:30 +01:00
9215848c38
Fix T50550: GPUShader: compile error - Background image not showing in
...
viewport.
Caused by rBd6cf28c5e15739f864fbf04614c2a50708b4b152, which forgot to
update the GLSL code for the "Light Path" node.
2017-02-22 15:25:28 +01:00
b3b4084073
Blender 2.78c: Fix wrong cycles hair render results when using BVH motion steps
...
This commit contains all commits required to get proper hair rendering
with BVH motion steps enabled.
The issue here was mainly coming from minimal pixel width feature
which is quite commonly enabled in production shots.
This feature will use some probabilistic heuristic in the curve
intersection function to check whether we need to return intersection
or not. This probability is calculated for every intersection check.
Now, when we use multiple BVH nodes for curve primitives we increase
probability of that primitive to be considered a good intersection
for us. This is similar to increasing minimal width of curve.
What is worst here is that change in the intersection probability
fully depends on exact layout of BVH, meaning probability might
change differently depending on a view angle, the way how builder
binned the primitives and such. This makes it impossible to do
simple check like dividing probability by number of BVH steps.
Other solution might have been to split BVH into fully independent
trees, but that will increase memory usage of all the static
objects in the scenes, which is also not something desirable.
For now used most simple but robust approach: store BVH primitives
time and test it in curve intersection functions. This solves the
regression, but has two downsides:
- Uses more memory.
which isn't surprising, and ANY solution to this problem will
use more memory.
What we still have to do is to avoid this memory increase for
cases when we don't use BVH motion steps.
- Reduces number of maximum available textures on pre-kepler cards.
There is not much we can do here, hardware gets old but we need
to move forward on more modern hardware..
2017-02-22 15:08:56 +01:00
c6e4a81dfb
Blender 2.78c: Port all commits related on new Cycles regression tests
2017-02-22 15:07:18 +01:00
3c043732d3
Blender 2.78b: Point addons to an updated revision
2017-02-08 14:50:08 +01:00
cc6cf0cdce
fix, keep bake until convert to keyframe has been finished, and delete then
...
Deleting the bake after changing the rigidbody count still is necessary, else the shard order and the mesh appearance of fracture modifier objects will be messed up.
Furthermore, decreased the convert to keyframe default threshold from 0.05 to 0.005, reconverting by re-using
the operator again still is somewhat broken
2017-02-05 17:24:44 +01:00
9cb21a1400
Blender release: We are officially 'b' now
2017-02-03 17:54:29 +01:00
a3e746733d
[msvc] cmake fixes to support the recent for oiio/ffmpeg/numpy version changes.
2017-02-03 09:47:54 -07:00
8fa3801c49
Fix fluid sim build error with MSVC.
2017-02-03 15:48:09 +01:00
34b09852fd
Fluids: improve multithreaded CPU usage.
...
Fixes for clamp-omp, fewer shared variables, fix some cases of threads writing
to the same memory location. Issue found by Jens Verwiebe, who reports 30%
speedup with 16 core CPU, when using this with a recent clang-omp version.
2017-02-03 15:48:06 +01:00
f6d2981ffb
Cycles tests: Allow python auto-exec
2017-02-03 10:46:56 +01:00
9f6cfa3ead
Cycles: Fix rng_state initialization when using resumable rendering
2017-02-01 11:48:50 +01:00
9529a96fd0
fix attempt for disappearing fm debris particles after baking
2017-01-29 19:08:38 +01:00
3c518ab4a4
crash fix, do not update tessface data while loading, only ensure it (saved fracture might have been invalid mesh)
2017-01-29 19:07:33 +01:00
7314ede784
Fix compilation error with latest OIIO 1.7.8
...
There are some changes in OIIO includes so now need to do some
things differently.
2017-01-26 11:27:44 +01:00
8ceed387c9
Return correct alpha for environment map in GLSL
2017-01-26 11:19:12 +01:00
672fbbfb4e
Fix T49405: Crash when baking with adaptive subdivision
...
Blenders baking system currently doesn't support the topology used by
adaptive subdivision and primitive ids will be wrong or out of range
leading to crashes. Updating the baking system to support other
topologies would be a bit involved, so for now we simply disable
subdivision while baking to avoid crashes.
2017-01-26 11:16:34 +01:00
59c224ebc7
Cycles: Don't rely on indirectly included algorithm
2017-01-26 11:16:24 +01:00
7a9f8d0c77
Cycles: Fix typo in the panel name
...
No user visible changes, it was a typo in the name of the class.
Spotted by povmaniac in IRC, thanks!
2017-01-26 11:15:35 +01:00
2a757450f5
Cycles: Update current Cycles version
2017-01-26 11:15:25 +01:00
82e0127065
Fix T50491: Cycles UI breaks when pushing F8.
...
Cycles add-on did not actually support reloading correctly.
When you want to correctly reload sub-modules (i.e. modules of an add-on
which is a package), you need to use importlib, a mere import will do
nothing with already loaded modules (RNA classes are sort of
pre-registered when they are evaluated, through the meta-class system).
2017-01-26 11:15:18 +01:00
bfd209007d
Cycles: Use more const qualifiers to avoid possible issues
2017-01-26 11:15:06 +01:00
db26c6f66c
Cycles: Cleanup, split one gigantic function into two smaller ones
2017-01-26 11:15:00 +01:00
a65a988592
Cycles: Store time in BVH nodes
...
This way we can stop traversing BVH node early on.
Gives about 2-2.5x times render time improvement with 3 BVH steps.
Hopefully this gives no measurable performance loss for scenes with
single BVH step.
Traversal is currently only implemented for QBVH, meaning old CPUs
and GPU do not benefit from this change.
2017-01-26 11:14:51 +01:00
91fe6bdcb6
Cycles: Add option to split triangle motion primitives by time steps
...
Similar to the previous commit, the statistics goes as:
BVH Steps Render time (sec) Memory usage (MB)
0 46 260
1 27 373
2 18 598
3 15 826
Scene used for the tests is the agent's body from one of the barber
shop scenes (no textures or anything, just a diffuse material).
Once again this is limited to regular (non-spatial split) BVH,
Support of spatial split to this feature will come later.
2017-01-26 11:14:42 +01:00
9bf3b4679e
Cycles: Add option to split curve motion primitives by time steps
...
The idea is to create several smaller BVH nodes for each of the motion
curve primitives. This acts as a forced spatial split for the single
primitive.
This gives up render time speedup of motion blurred hair in the cost
of extra memory usage. The numbers goes as:
BVH Steps Render time (sec) Memory usage (MB)
0 258 191
1 123 278
2 69 453
3 43 627
Scene used for the tests is the agent's hair from one of the barber
shop scenes.
Currently it's only limited to scenes without spatial split enabled,
since the spatial split builder requires some changes to work properly
with motion steps coordinates.
2017-01-26 11:14:36 +01:00
be431c7cdc
Cycles: Add utility function to calculate curve boundbox from given 4 keys
...
Also fixed some issues with motion keys calculation:
- Clamp lower and upper limits of curves so we can safely call those
functions for the very first and very last curve segment.
- Fixed wrong indexing for the curve radius array.
- Fixed wrong motion attribute offset calculation.
2017-01-26 11:14:28 +01:00
d87caabf29
Cycles: Cleanup, trailing whitespace
2017-01-26 11:14:20 +01:00
f6742d36cd
Cycles: Split motion triangle file once again, avoids annoying forward declarations
2017-01-26 11:14:12 +01:00
acbba822f7
Cycles: Move motion triangle intersection functions to own file
...
Mimics how regular triangles are working and makes it more clear where
the stuff is located in the kernel.
Needed to have some forward declarations because of the current placement
of things in the kernel.
2017-01-26 11:14:02 +01:00
69357d9db0
Cycles: Cleanup, better variable name
2017-01-26 11:13:54 +01:00
5a5b45374b
Cycles: Add utility function to fetch motion keys while on CPU side
2017-01-26 11:13:48 +01:00
93c5388e34
Cycles: Cleanup, comments
2017-01-26 11:13:40 +01:00
df3511c96f
Cycles: Add utility function to fetch motion triangle when on CPU side
2017-01-26 11:13:34 +01:00
eabb8f1d12
Cycles: Cleanup, delete trailing whitespace
2017-01-26 11:13:28 +01:00
5283a7e518
Fix T50460. Greying out issue with Cycles culling options.
2017-01-26 11:13:06 +01:00
c727bc7743
Fix T50517: Rendering expecting time is negative
2017-01-25 11:22:14 +01:00
feb2f0ae30
FIX T49899: Add EIGEN_MAKE_ALIGNED_OPERATOR_NEW to classes that use eigen's data types , to force aligned on 16 byte boundaries.
2017-01-24 11:54:39 +01:00
44ffbcd254
Fix T49857: Blender crashes after adding texture node to compositing tree
2017-01-24 11:54:39 +01:00
f8a3b9b50c
Cycles: Fix compilation error on with older GCC
...
Hopefully it works on all platforms now.
2017-01-20 12:17:11 +01:00
faaf41b330
Depsgraph: Bone parent should also include armature transform relation
...
It is required to have world-space bone position, which consists of armature
object transform and local bone transform.
2017-01-20 11:37:00 +01:00
8a0e91366c
Depsgraph: Only re-schedule objects which are on visible layers
...
Otherwise it's possible to cause infinite update loop in Cycles viewport.
Gets a bit messy logic, need to revisit this..
2017-01-20 11:37:00 +01:00
85c7ecce27
Depsgraph: Use HIGH priority for scheduled tasks
...
This kind of keeps threads "warmer" and should in theory give better
cache coherency bringing some %% of speedup. It was already tested
few months ago and it gave few % speedup in barber shop, but was
reverted due to some bone popping. The popping is now fixed so it
should be fine to use new scheduling policy.
2017-01-20 11:37:00 +01:00
e3ede8294a
Depsgraph: avoid more transitive relations for rigid body simulation
2017-01-20 11:37:00 +01:00
bff566215e
Depsgraph: Rigid body simulation doesn't need explicit time relation
...
It'll be dependent on time via Time Source -> Rebuild RB World chain.
2017-01-20 11:36:59 +01:00
10ce1eea3f
Depsgraph: Avoid transitive relation from local transform to final
...
There is always an uber eval node on the way. so we can avoid creating
some relations here in order to speed up both construction time and
evaluation.
2017-01-20 11:36:59 +01:00
5c4c2bebaa
Fix depsgraph: hair collision is actually enabled, so add the relations.
2017-01-20 11:36:59 +01:00
85ec0446e1
Depsgraph: Fix matrix_world driver source
...
Reported by Dalai in IRC, thanks!
2017-01-20 11:36:59 +01:00
4a4959a647
Fix T49981: New Depsgraph - When camera is on inactive layer, it does not evaluate constraints
2017-01-20 11:36:59 +01:00
a3f66a868e
Depsgraph: Fix infinite viewport object update in CYcles render mode
...
The issue was caused by wrong object re-tag needed to have proper dependnecies
update for OpenSubdiv.
2017-01-20 11:36:58 +01:00
8e908ae321
Depsgraph: use more explicit parenthesis
2017-01-20 11:36:58 +01:00
82cee9cb89
Depsgraph: Fix residue of debug-only code
2017-01-20 11:36:58 +01:00
b5b0354b7c
Fix copy/paste typo in new depsgraph object geometry builder (found by coverity).
2017-01-20 11:36:58 +01:00
5708ec2a01
Depsgrpah: Fix missing animation update in movie clips
2017-01-20 11:36:58 +01:00
317431461f
Depsgraph: Move scene builder function to own file
...
This way it's much easier to grasp what the graph actually contains.
2017-01-20 11:36:57 +01:00
48a8a20e2a
Fix T50060: New depsgraph does not update mask animation
2017-01-20 11:36:57 +01:00
cf60343b06
Depsgraph: Use utility macro to iterate over linked list
...
This will be compiled into same exact code, just saves us from
doing annoying type casts all over the place.
2017-01-20 11:36:57 +01:00
c02ba89d6a
Depsgraph: Move rig builder functions to own files
...
Those routines are rather big and started to be annoying to have
one big file.
Should be no functional changes.
2017-01-20 11:36:57 +01:00
3d2a6e7db3
Depsgraph: Fix typo in previous optimization commit
...
Was a residue from another experiment, caused infinite loop when
reporting dependency cycles.
2017-01-20 11:36:57 +01:00
6d6c333ee9
Atomics: Make naming more obvious about which value is being returned
2017-01-20 11:36:56 +01:00
fb2d5a9853
Fix T49994: Setting dupligroup which uses indirect relation will crash
...
Did similar trick to old dependency graph: tag invisible relations for update.
Might need some re-consideration, see the comment.
This should solve our issues with powerlib addon here in the studio.
2017-01-20 11:36:56 +01:00
8ddc85ab59
Depsgraph: Add missing NULL pointer check
2017-01-20 11:36:56 +01:00
d3963e2bb0
Depsgraph: Fix missing DONE flag in relations builder
...
Was causing relations be build twice in certain cases.
2017-01-20 11:36:56 +01:00
c0c6af2cdd
Fix T49993: Indirectly used taper/bevel crashes new dependency graph
...
New dependency graph expects strict separation between nodes and relations builder,
meaning, if we try to create relation with an object which is not in the graph yet
we'll have an error in depsgraph.
Now, so far object nodes were created from bases of the current scene, which caused
missing objects in graph in certain cases.
Didn't find better approach than to simply ensure object nodes exists when we know
they'll be used by relation builder.
2017-01-20 11:36:56 +01:00
88d02e5433
Depsgraph: Fix typo in text on curve relation builder
2017-01-20 11:36:56 +01:00
9d2a7961fc
Depsgraph: Fix missing ID node tag
...
Might have caused nodes created multiple times for the same object.
2017-01-20 11:36:55 +01:00
a45d648485
Depsgraph: Add some data builder logic to corresponding function
2017-01-20 11:36:55 +01:00
ad01f0d19b
Depsgraph: cleanup, no functional changes
2017-01-20 11:36:55 +01:00
29ef143ef9
Depsgraph: Fix another issue which seems to be a bug
...
Similar to a previous commit.
Doing separately for an easy of bisect.
2017-01-20 11:36:55 +01:00
5393e78367
Depsgraph: Fix wrong relation from IK solver to pole target
...
Copy paste error...
How to avoid those?
2017-01-20 11:36:55 +01:00
f737bc673b
Depsgraph: Disable timing profile
2017-01-20 11:36:55 +01:00
Martijn Berger
3d75a7d0dc
fix building depsgraph after recent changes
2017-01-20 11:36:54 +01:00
faa8b12714
Depsgraph: Do not rely on indirectly included cstring
...
Also add comment why exactly cstring is needed.
2017-01-20 11:36:54 +01:00
1c5502def8
Despgraph: Optimize cycles detection algorithm
...
The idea is simple: when falling back to one of the nodes which was partially
handled we "resume" checking outgoing relations from the index which we stopped.
This gives about 15-20% depsgraph construction time save.
2017-01-20 11:36:54 +01:00
34199e82fc
Depsgraph: Speedup initial rig build time
...
We don't need to sort bone channels, it's all taken care about
by the depsgraph itself.
Gives up to 30% initial rig construction time speedup.
2017-01-20 11:36:54 +01:00
b15d218db5
Depsgraph: Move key implementation from header to dedicated file
2017-01-20 11:36:54 +01:00
93783cb176
Depsgraph: Move class implementation from header to implementation files
...
This is more proper way to go:
- Avoids re-compilation of all dependent files when implementation changes
without changed API,
- Linker should have much simpler time now de-duplicating and getting rid
of redundant implementations.
2017-01-20 11:36:54 +01:00
06c202002b
Depsgraph: Fully switch from string to const char*
...
This brings up to 10-20% depsgraph build time improvement in the layout
files from the studio repository.
2017-01-20 11:36:53 +01:00
570c072020
Depsgraph: Add extra name tag for operation nodes
...
The idea here is to address issue that name on it's own is not
always unique: for example, when adding driver operations the
name used for nodes is the RNA path (and multiple drivers can
write to different array indices of the path). Basically, now
it's possible to pass extra integer value to distinguish
operations in such cases.
So now we've already switched from sprintf() to construct unique
operation name to pass RNA path and array index.
There should be no functional changes yet, but this work is
required for further work about replacing string with const
char*.
2017-01-20 11:36:53 +01:00
1d5833caf5
Depsgraph: Cleanup, operation has name, not description
...
Hopefully should make things more clear here.
2017-01-20 11:36:53 +01:00
507599270f
Depsgraph: Remove unused function
...
A residue from times where we thought to do partial graph updates,
which we are not committing any time soon.
2017-01-20 11:36:53 +01:00
c520c4955f
Depsgraph: Use const char for component API
2017-01-20 11:36:53 +01:00
c8f942574d
Depsgraph: Remove some includes which seems unused
2017-01-20 11:36:52 +01:00
4939ec8a13
Depsgraph: Use const char instead of string in part of drivers construction
2017-01-20 11:36:52 +01:00
f7f44da43d
Depsgraph: Switch away form string to const char* for node names
...
There is no real reason to have nodes storing heap-allocated name
and description. Doing this increases amount of allocations during
dependency graph building, which usually means somewhat slowness.
We're temporarily loosing some eyecandy in the graphviz visualizer,
but those we can bring back as a part of graphiz dump (which happens
much less often than depsgraph build).
This will happen in multiple commits for the ease of bisect in the
future just in case this causes any regression. This commit contains
ID creation API changes.
2017-01-20 11:36:52 +01:00
fe53bdf893
Depsgraph: Remove prototype of unused and non-implemented method
2017-01-20 11:36:52 +01:00
f7c0b01c2d
Depsgraph: Add code for timing despgraph builder
2017-01-20 11:36:52 +01:00
71d48a44a5
Fix T49826: NEW-DEPSGRAPH - Texture is not updated after changing its space color
...
The issue was caused by image ID nodes not being in the depsgraph.
Now, tricky part: we only add nodes but do not add relations yet. Reasoning:
- It's currently important to only call editor's ID update callback to solve
the issue, without need to flush changes somewhere deeper.
- Adding relations might cause some unwanted updates, so will leave that for
a later investigation.
2017-01-20 11:36:52 +01:00
7d9be2f44e
Depsgraph: Fix wrong comparison of ID type vs. node type
2017-01-20 11:36:51 +01:00
6514cbae6b
Depsgraph: Fix race condition writing drivers to array property
...
Animation system has separate fcurves for each of array elements and
dependency graph creates separate nodes for each of fcurve, This is
needed to keep granularity of updates, but causes issues because
animation system will actually write the whole array to property when
modifying single value (this is a limitation of RNA API).
Worked around by adding operation relation between array drivers
so we never write same array form multiple threads.
2017-01-20 11:36:51 +01:00
e4164f31fc
Depsgraph: Fix some errors printed to the console
...
They were not real issues, it's just some areas of code tried to create
relations between non-existing nodes without checking whether such
relations are really needed.
Now it should be easier to see real bugs printed.
Hopefully should be no regressions here.
2017-01-20 11:36:51 +01:00
8b192ade96
Partial fix for T49836: Camera DOF properties not updating via graph editor
...
Do this for the new dependency graph: was missing handle of OB_UPDATE_TIME in tag update.
Hopefully it's all correct still.
Old dependency graph needs work, but i'm tempting to call it unsupported and move on
to 2.8 branch.
2017-01-20 11:36:51 +01:00
1c29fbed65
Depsgraph: Report proper error when modifier fails to create relation link
2017-01-20 11:36:51 +01:00
085ce77b64
Depsgraph: Avoid some false-positive time dependencies of scripted drivers
...
This was quite weak to consider all scripted expression to be time-dependent.
Current solution is somewhat better but still crappy. Not sure how can we make
it really nice.
2017-01-20 11:36:51 +01:00
4ad131f9f1
Solve threading conflict when calculating smooth normals
...
It was possible to have synchronization issues whe naccumulating smooth
normal to a vertex, causing shading artifacts during playback.
Bug found by Dalai, thanks!
2017-01-20 11:36:50 +01:00
05fd3b586f
RNA: Expose autosmooth face splitting
...
This way render engine can request mesh to be auto-split and not
worry about implementing this functionality on it's own.
Please note that this split is to be performed prior to tessellation.
2017-01-20 11:29:02 +01:00
7e5a0c146e
Fix compile error (-Werror=float-conversion).
2017-01-20 11:26:25 +01:00
4564b014be
Cycles: Expose diffuse and glossy depth to Light Path node
...
Was a bit confusing to have transparent and translucent depth
exposed but no diffuse or glossy.
Reviewers: brecht
Subscribers: eyecandy
Differential Revision: https://developer.blender.org/D2399
2017-01-20 11:26:24 +01:00
5f2ed8ccf1
Cycles: Don't use fast math for the host code
...
This is important for the reliable behavior or isnan/isfinite/min/max
functions to work with nan and non-finite values. Some of the issues
with fast math are possible to work around, but didn't find a way to
have reliable min/max implementation yet.
2017-01-20 11:26:24 +01:00
a1570562f3
Cycles: Add fast-math safe isnan and isfinite
...
Currently unused, but might become really handy in the future.
2017-01-20 11:26:24 +01:00
46926b4b11
Cycles: Remove using namespace hell
...
Please NEVER EVER use such a statement, it's only causing HUGE
issues. What is even worse: it's not always possible to immediately
see that the hell is coming from such a statement.
There is still some statements in the existing code, will leave
those for a later cleanup.
2017-01-20 11:26:24 +01:00
83d7c64bc9
Cycles: Fix amount of rendered samples not being shown while rendering the last tile on CPU
2017-01-20 11:26:24 +01:00
1f390081c2
Cycles: Cleanup, spelling
2017-01-20 11:26:23 +01:00
d28035aff3
Cycles: Cleanup, avoid shadowing
2017-01-20 11:26:23 +01:00
618177640f
Cycles: Fix wrong transparent shadows for motion blur hair
...
This was a missing bit from b53ce9a
.
2017-01-20 11:26:23 +01:00
3f3463700e
Cycles: Cleanup, style
2017-01-20 11:26:23 +01:00
3b454eb92c
Cycles: Simplify some code in Curve BVH reference fill
...
makes code slightly shorter and uses idea of const qualifiers.
2017-01-20 11:26:23 +01:00
bd302ecf73
Cycles: Avoid shadowing in BVH code
...
Run into some nasty bugs while trying various things here.
Wouldn't mind enabling -Wshadow for Cycles actually..
2017-01-20 11:26:23 +01:00
a503e7626a
Cycles: Allow up to 4 motion curve primitives per BVH node
...
This avoids intersection AABB of different curve primitives
which makes it less ray-to-primitive intersections.
This gives about 30% speedup of hair rendering in the barber
shop scenes here. There is still some work to be done on those
files to solve major speed issues on certain frames.
2017-01-20 11:26:22 +01:00
fb6a94170f
Cycles: Prepare BVH traversal code to work with multiple curve primitives per node
2017-01-20 11:26:22 +01:00
0f5db226cf
Cycles: Correct assert() for cases when there are multiple curves per BVH node
2017-01-20 11:26:22 +01:00
a1f0e53498
Cycles: Use separate limit for motion primitives for BVH node limits
...
This way we can have different limits for regular and motion curves
which we'll do in one of the upcoming commits in order to gain some
percents of speedup.
The reasoning here is that motion curves are usually intersecting
lots of others bounding boxes, which makes it inefficient to have
single primitive in the leaf node.
2017-01-20 11:26:22 +01:00
d3e6fe0506
Cycles: Change confusing logic of max leaf size check
...
Maximal number of elements is supposed to be inclusive. That is what
it was always meant in this file and what @brecht considered still
the case in 6974b69c61
.
In fact, the commit message to that change mentions that we allowed
up to 2 curve primitives per leaf while in fact it was doing up to 1
curve primitive.
Making it real 2 primitives at a max gives about 5% slowdown for the
koro.blend scene. This is a reason why BVHParams.max_curve_leaf_size
was changed to 1 by this change.
2017-01-20 11:26:22 +01:00
fa1988a34f
Cycles: Cleanup, space prior to semicolon
...
We don't have that in Blender style, no reason to violate it here.
2017-01-20 11:26:22 +01:00
e92e265559
Cycles: Cleanup, make curve functions private
...
Not only they don't really follow naming convention (we don't use
camel case) but also was not necessary to keep them in the global
symbol table.
2017-01-20 11:26:21 +01:00
10cef4e86f
Cycles: Make it more clear message why curve motion attribute was removed
2017-01-20 11:26:21 +01:00
086390dce7
Cycles: Use dedicated debug passes for traversed nodes and intersection tests
...
This way it's more clear whether some issue is caused by lots of geometry in
the node or by lots of "transparent" BVH nodes.
2017-01-20 11:26:21 +01:00
e15639f1cd
Cycles: Remove more duplicated code in debug passes logic
2017-01-20 11:26:21 +01:00
41ed782350
Cycles: Fix wrong scaling of traversed instances debug pass
2017-01-20 11:26:21 +01:00
3cb1398899
Cycles: Cleanup, remove duplicated code
2017-01-20 11:26:20 +01:00
0fdb16ec4d
Cycles: Cleanup, indentation within preprocessor
2017-01-20 11:26:20 +01:00
e9e1c95e64
Cycles: Cleanup, use switch() instead of if-else chain
...
About to add extra debug passes, which will be more clear to use switch().
2017-01-20 11:26:20 +01:00
39bc6172a4
Cycles: move hair particle settings to scene context
...
Since the beginning of times hair settings in cycles were global for
the whole scene but were located in the particle context. This causes
quite some trickery to get shots set up for the movies here in the
studio by forcing artists to create dummy particle system to change
settings of hair on the shot.
While ideally this settings should be properly become per-particle
system for the time being it will save sweat and blood to move the
settings to scene context.
Reviewers: brecht
Subscribers: jtheninja, eyecandy, venomgfx, Blendify
Differential Revision: https://developer.blender.org/D2287
2017-01-20 11:26:20 +01:00
8e372da1b5
Cycles: Fix wrong motion blur when combining deformation motion blur with autosplit
...
The issue was that we used to compare number of vertices for mesh after the auto
smooth was applied (at the center of the shutter time) with number of vertices
prior to the auto smooth applied. This caused false-positive consideration of a
mesh as changing topology.
Now we do autosplit as early as possible and do it from blender side, so Cycles
does not need to re-implement splitting on it's side.
2017-01-20 11:26:20 +01:00
aeece53491
Cycles: Pass explicit subdivision type to object_to_mesh
...
This allows us to do some extra logic checks there based on particular
subdivision type.
Additionally avoids implicit cast of enum to bool.
2017-01-20 11:26:20 +01:00
f0d866d143
Cycles: Cleanup, whitespace around operator
2017-01-20 11:26:20 +01:00
fa73db47e8
Cycles: Improve logging of cases when motion blur is disabled
...
Next logical step is to expose this somehow to the interface.
2017-01-20 11:26:19 +01:00
f071e48dcf
Cycles: Fix uninitialized variable issue after recent changes
2017-01-20 11:26:19 +01:00
d8a8f69c98
Cycles: Move object culling helper to own files
...
This is a stand-alone logic, which becomes quite comprehensive now.
2017-01-20 11:26:19 +01:00
893aa1cae3
Cycles: Fix indendation
2017-01-20 11:26:19 +01:00
166b6c9240
Cycles: Consider GGX/Beckmann/Ashikhmin of 0 roughness a singular ray
...
This matches behavior of Multiscatter GGX and could become handy later on
when/if we decide it would be beneficial to replace on closure with another.
Reviewers: lukasstockner97, brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2413
2017-01-20 11:26:19 +01:00
14e7ac956f
Cycles: Tweak curve segment (un)pack to handle more curve segments
...
There was 16 bits reserved for primitive type, while we only need 4.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2401
2017-01-20 11:26:18 +01:00
5030854a66
Cycles: Cleanup, variable names
...
Use underscore again and also solve confusing part then in BVH smae
thing is called prim_addr but in intersection funcitons it was called
triAddr.
2017-01-20 11:26:18 +01:00
b8fc22fde1
Cycles: Cleanup, variables names
...
Use underscore instead of camel case.
2017-01-20 11:26:18 +01:00
5edef96d77
Land D2339 by bliblu bli
2017-01-20 11:26:18 +01:00
d546f66efc
Fix emissive volumes generates unexpected fireflies around intersections
...
Discard the whole volume stack on the last bounce (but keep
world volume if present).
Volumes are expected to be closed manifol meshes, meaning if
ray entered the volume there should be an intersection event
of ray exisintg the volume. Case when ray hit nothing and
there are still non-world volumes in the stack can happen in
either of cases.
1. Mesh is not closed manifold.
Such configurations are not really supported anyway and should
not be used.
Previous code would have consider the infinite length of the
ray to sample across, so render result wasn't really correct
anyway.
2. Exit intersection is more far away than the camera far
clip distance.
This case also will behave differently now, but previously it
wasn't really correct either, so it's not like we're breaking
something which was working as expected.
3. We missed exit event due to intersection precision issues.
This is exact the case which this patch fixes and avoid
fireflies.
4. Volume has Camera only visibility (all the rest visibility
is set to off)
This is what could be considered a regression but could be
solved quite easily by checking volume stack's objects flags
and keep entries which doesn't have Volume Scatter visibility
(or even better: ensure Volume Scatter visibility for objects
with volume closure),
Fixes T46108: Cycles - Overlapping emissive volumes generates unexpected bright hotspots around the intersection
Also fixes fireflies appearing on the edges of cube with
emissive volue.
Reviewers: juicyfruit, brecht
Reviewed By: brecht
Maniphest Tasks: T46108
Differential Revision: https://developer.blender.org/D2212
2017-01-20 11:26:18 +01:00
e4b67e7e5e
Cycles :Cleanup, indentation
2017-01-20 11:26:18 +01:00
dd156f743c
Cycles: Refactor Progress system to provide better estimates
...
The Progress system in Cycles had two limitations so far:
- It just counted tiles, but ignored their size. For example, when rendering a 600x500 image with 512x512 tiles, the right 88x500 tile would count for 50% of the progress, although it only covers 15% of the image.
- Scene update time was incorrectly counted as rendering time - therefore, the remaining time started very long and gradually decreased.
This patch fixes both problems:
First of all, the Progress now has a function to ignore time spans, and that is used to ignore scene update time.
The larger change is the tile size: Instead of counting samples per tile, so that the final value is num_samples*num_tiles, the code now counts every sample for every pixel, so that the final value is num_samples*num_pixels.
Along with that, some unused variables were removed from the Progress and Session classes.
Reviewers: brecht, sergey, #cycles
Subscribers: brecht, candreacchio, sergey
Differential Revision: https://developer.blender.org/D2214
2017-01-20 11:26:17 +01:00
f2677a58a5
Cycles: Implement AVX2 path for curve intersection functions
...
Gives little performance improvement on Linux and gives up to 2%
speedup on koro.blend on Windows.
Inspired by Maxym Dmytrychenko, thanks!
2017-01-20 11:26:17 +01:00
7e5af7aefd
Cycles: Add AVX intrinsics helpers
...
They are defined for MSVC but seems to be missing in GCC and CLang-3.8.
Maybe some further tweaks to policy when to define those functions is
needed, but should be fine for now.
2017-01-20 11:26:17 +01:00
6df6f8c982
Cycles: Disable AVX2 crash workarounds
...
I can no longer reproduce crash with neither of the files where
the crash was originally visible. This is something where other
changes (light threshold, sampling) had an effect and made code
to work as it is supposed to. Could have been optimizator issue
or something like that.
Let's see if we hit same issue again.
2017-01-20 11:26:17 +01:00
a3ef4c1470
Fix T50116: Light threshold broke branched path tracer
...
In fact, the issue was caused by light threshold being too high for
certain scenes. Lowered it down to 0.01.
2017-01-20 11:26:17 +01:00
5aede15fea
Cycles: Fix correlation issues in certain cases
...
There were two cases where correlation issues were obvious:
- File from T38710 was giving issues in 2.78a again
- File from T50116 was having totally different shadow between
sample 1 and sample 32.
Use some more simplified version of CMJ hash which seems to give
nice randomized value which solves the correlation.
This commit will break all unit test files, but it's a bug fix
so perhaps OK to commit this.
This also fixes T41143: Sobol gives nonuniform noise
Proper science paper about hash function is coming.
Reviewers: brecht
Reviewed By: brecht
Subscribers: lukasstockner97
Differential Revision: https://developer.blender.org/D2385
2017-01-20 11:26:17 +01:00
5596f970be
Fix T50075: Assert during debug render of hair_geom_transmission.blend
2017-01-20 11:26:16 +01:00
921e45d82b
Cycles: Pass extra array size argument to builtin image pixels functions
...
This is a way to avoid possible memory corruption when render threads works
in parallel with UI thread.
Not guarantees complete safe, but makes things easier to check anyway.
2017-01-20 11:26:16 +01:00
d2affb1049
Fix T50104, Race condition in SVMShaderManager::device_update_shader
2017-01-20 11:26:16 +01:00
c3fd2b98ce
Cycles: Avoid divisions by zero in volume sampling code
...
Was giving huge artifacts in the barber shop file here in the studio,
Maybe not fully optimal solution, but committing it for now to have
closer look later.
2017-01-20 11:26:16 +01:00
c61e68f289
Fix T50100: Cycles SeparateRGBNode Red socket defined wrong
...
Spotted by David (bocs), thanks!
2017-01-20 11:26:16 +01:00
b66d4f5eed
Cycles: Fix strict compilation warnings
2017-01-20 11:26:16 +01:00
df6256a6ea
Fix Cycles device backwards compatibility error if device type is unavailable.
2017-01-20 11:26:15 +01:00
ef28892654
Fix spelling in Cycles distance culling description.
2017-01-20 11:26:15 +01:00
1e57f6f957
Cycles: Fix strict compilation warnings
...
Should be no functional changes.
2017-01-20 11:26:15 +01:00
c1080ff73e
Fix T50034: Blender changes processor affinity unauthorized
2017-01-20 11:26:15 +01:00
4ace7e1ebf
Cycles: Fix re-definition of some functions on x32 arch
2017-01-20 11:26:15 +01:00
567c42bd22
Cycles: Another attempt to fix compilation on 32bit Linux
2017-01-20 11:26:15 +01:00
f4cd05082c
Cycles: Attempt to fix 32bit buildbot builds after recent commit
2017-01-20 11:26:14 +01:00
4b7b9ded91
Cycles: Implement texture size limit simplify option
...
Main intention is to give some quick way to control scene's memory
usage by clamping textures which are too big. This is really handy
on the early production stages when you first create really nice
looking hi-res textures and only when it all works and approved
start investing time on optimizing your scene.
This is a new option in Scene Simplify panel and it acts as
following: when texture size is bigger than the given value it'll
be scaled down by half for until it fits into given limit.
There are various possible improvements, such as:
- Use threaded scaling using our own task manager.
This is actually one of the main reasons why image resize is
manually-implemented instead of using OIIO's resize. Other
reason here is that API seems limited to construct 3D texture
description easily.
- Vectorization of uchar4/float4/half4 textures.
- Use something smarter than box filter.
Was playing with some other filters, but not sure they are
really better: they kind of causes more fuzzy edges.
Even with such a TODOs in the code the option is already quite
useful.
Reviewers: brecht
Reviewed By: brecht
Subscribers: jtheninja, Blendify, gregzaal, venomgfx
Differential Revision: https://developer.blender.org/D2362
2017-01-20 11:26:14 +01:00
d77dcd5896
Cycles: Attempt to fix compilation error on ppc64el
...
There is some define conflict between system headers and clew,
so delay include of clew.h as much as possible.]
This is something which needed to be done in the code before
the refactor, hopefully such change will still work.
2017-01-20 11:26:14 +01:00
897261c01e
Cycles: Don't shadow loop variable
2017-01-20 11:26:14 +01:00
0c4b812d2d
Cycles: add basic backwards compatibility for device selection, move to System tab.
...
For the multi-GPU case users still have to reconfigure the devices they want to use.
Based on patch from Lukas Stockner.
Differential Revision: https://developer.blender.org/D2347
2017-01-20 11:26:14 +01:00
555e21d996
Cycles: refactor culling code into utility class.
2017-01-20 11:26:13 +01:00
59af4562dd
Cycles: distance culling for objects.
...
This can be used together with camera culling to keep nearby objects visible in
reflections, using a minimum distance within which objects are visible. It is
also useful to cull small objects far from the camera.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2332
2017-01-20 11:26:13 +01:00
Dalai Felinto
a38a8497ef
Cycles: Different noise seed for stereoscopic rendering (Fix #T50024)
...
Patch by Sergey Sharybin.
2017-01-20 11:26:13 +01:00
fcde51fd5d
Fix T50001: auto tile size addon broken after Cycles GPU device changes.
...
Adds a get_num_gpu_devices() utility function for the addon to use.
2017-01-20 11:26:13 +01:00
bca4af7610
Cycles: Fix different noise pattern from fix in T49838:
...
No need to hash subframe == 0.
2017-01-20 11:26:13 +01:00
44e996745b
Atomics: Make naming more obvious about which value is being returned
2017-01-20 11:26:11 +01:00
f24d420f16
Cycles: De-duplicate image loading functions
...
The code was templated already, so don't see big reason to have
3 versions of templated functions. It was giving some extra code
to maintain and in fact already had divergency for support of huge
image resolution (missing size_t cast in byte image loading).
There should be no changes visible by artists.
2017-01-20 11:25:53 +01:00
6832a18198
Fix T49904: Cycles standalone missing default generated texture coordinates.
2017-01-20 11:25:53 +01:00
feff2bfce4
Fix Cycles OSL compilation based on modified time not working.
2017-01-20 11:25:53 +01:00
a684d9375a
Fix Cycles standalone not finding CPU device after recent changes.
2017-01-20 11:25:52 +01:00
78c855a370
Fix T49985: cycles standalone XML missing distant lights.
2017-01-20 11:25:52 +01:00
ff1b925ab3
Fix T49985: cycles standalone using wrong socket names for XML reading.
2017-01-20 11:25:52 +01:00
c40c888a52
Cycles: Add comments to endif directives
...
`kernel_path.h` and `kernel_path_branched.h` have a lot of conditional code and
it was kind of hard to tell what code belonged to which directive. Should be
easier to read now.
2017-01-20 11:25:52 +01:00
4b98b86654
Fix T49838: Noise randomization for frame should be done per interframes as well
...
Add subframe to the animated seed hash calculation.
Should be no difference for the regular files, only for cases when scene is
rendered from sequencer with a speed effect, which is not really a common thing.
2017-01-20 11:25:52 +01:00
0e9eeccf2e
Cycles: Only use new light sample threshold for new files
...
This is a late follow-up commit to the light sample threshold changes which
caused difference in rendering all existing .blend files which is not something
we are happy about: it is fine to use new optimized defaults for new files, but
existing ones should always be rendering in the same way as they used to be.
Sorry for the inconveniece, but such thing should have been done to begin with.
If this setting was modified it will not be reset to zero.
Now all render tests should be passing again.
P.S. Also really annoying to bump subversion for such reasons, but currently we
don't have better way to achieve what we want.
2017-01-20 11:25:51 +01:00
f6926ea3f8
Fix compilation error when CUDA toolkit is not installed
...
After CUDA dynload changes having CUDA toolkit became required
in order to compile Cycles. This only happened due to wrong
default value to the option.
2017-01-20 11:25:29 +01:00
4a459704c0
Cycles: Remove device settings from performance tab
...
This was included in the commit by accident, it doesn't belong there.
2017-01-20 11:25:29 +01:00
f840239ee0
Cycles: Refactor Device selection to allow individual GPU compute device selection
...
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2017-01-20 11:25:29 +01:00
c89d8dd6cb
Cycles: Fix T49952: Bad MIS sampling of backgrounds with single bright pixels
...
With this fix, using a MIS map resolution equal to the image size for closest imterpolation or twice the size for linear interpolation gets rid of all fireflies.
Previously, a much higher resolution was needed to get acceptable noise levels.
2017-01-20 11:25:29 +01:00
Martijn Berger
259d296918
cycles, cuDeviceComputeCapability is deprecated as of cuda 5.0
2017-01-20 11:25:28 +01:00
d812d54812
Cycles: Fix missing underscore in geom_object.h
2017-01-20 11:25:28 +01:00
73753072c2
Cycles: Fix OpenCL build error caused by light termination commit
2017-01-20 11:25:28 +01:00
e961684de5
Cycles: Fix T49901: OpenCL build error after recent light texture coordinate commit
...
Basically, the problem here was that the transform that's used to bring texture coordinates
to world space is either fetched while setting up the shader (with Object Motion is enabled) or
fetched when needed (otherwise). That helps to save ShaderData memory on OpenCL when Object Motion isn't needed.
Now, if OM is enabled, the Lamp transform can just be stored inside the ShaderData as well. The original commit just assumed it is.
However, when it's not (on OpenCL by default, for example), there is no easy way to fetch it when needed, since the ShaderData doesn't
store the Lamp index.
So, for now the lamps just don't support local texture coordinates anymore when Object Motion is disabled.
To fix and support this properly, one of the following could be done:
- Just always pre-fetch the transform. Downside: Memory Usage increases when not using OM on OpenCL
- Add a variable to ShaderData that stores the Lamp ID to allow fetching it when needed
- Store the Lamp ID inside prim or object. Problem: Cycles currently checks these for whether an object was hit - these checks would need to be changed.
- Enable OM whenever a Texture Coordinate's Normal output is used. Downside: Might not actually be needed.
2017-01-20 11:25:28 +01:00
Martijn Berger
74dc4ef556
Cycles standalone, compile fix UINT_MAX is not defined in device_cuda.cpp
2017-01-20 11:25:28 +01:00
8f8800bbbc
Cycles: Deduplicate AO calculation
...
No functional changes.
2017-01-20 11:25:28 +01:00
927f84af07
Cycles: Fix OpenCL compilation with the new brick texture
2017-01-20 11:25:28 +01:00
44197cafaf
Cycles: Style Fix: Light sampling threshold description
2017-01-20 11:25:28 +01:00
e5a86361af
Cycles: Initialize the RNG state from the kernel instead of the host
...
This allows to save a memory copy, which will be particularly useful for network rendering.
Reviewers: sergey, brecht, dingto, juicyfruit, maiself
Differential Revision: https://developer.blender.org/D2323
2017-01-20 11:25:27 +01:00
feb4822346
Cycles: Add optional probabilistic termination of light samples based on their expected contribution
...
In scenes with many lights, some of them might have a very small contribution to some pixels, but the shadow rays are traced anyways.
To avoid that, this patch adds probabilistic termination to light samples - if the contribution before checking for shadowing is below a user-defined threshold, the sample will be discarded with probability (1 - (contribution / threshold)) and otherwise kept, but weighted more to remain unbiased.
This is the same approach that's also used in path termination based on length.
Note that the rendering remains unbiased with this option, it just adds a bit of noise - but if the setting is used moderately, the speedup gained easily outweighs the additional noise.
Reviewers: #cycles
Subscribers: sergey, brecht
Differential Revision: https://developer.blender.org/D2217
2017-01-20 11:25:27 +01:00
199d7dc70d
Cycles: Add smoothing option to the Brick Texture
...
This option allows to create a smoother transition between Bricks and Mortar - 0 applies no smoothing, and 1 smooths across the whole mortar width.
Mainly useful for displacement textures.
The new default value for the smoothing option is 0.1 to give some smoothing that helps with antialiasing, but existing nodes are loaded with smoothing 0 to preserve compatibility.
Reviewers: sergey, dingto, juicyfruit, brecht
Reviewed By: brecht
Subscribers: Blendify, nutel
Differential Revision: https://developer.blender.org/D2230
2017-01-20 11:25:27 +01:00
e9211860b9
Fix T49846: OpenCL rendering compilation failure
2017-01-20 11:25:27 +01:00
5306621998
Cycles: Implement texture coordinates for Point, Spot and Area Lamps
...
When using the Normal output of the Texture Coordinate node on Point and Spot lamps, the coordinates now depend on the rotation of the lamp.
On Area lamps, the Parametric output of the Geometry node now returns UV coordinates on the area lamp.
Credit for the Area lamp part goes to Stefan Werner (from D1995).
2017-01-20 11:25:27 +01:00
468022403a
Cycles: More workarounds for weird crashes on AVX2
...
Oh man, is it a compiler bug? Is it something we do stupid?
For now more crap to prevent crashes. During the conference will talk to
Maxyn about how can we troubleshoot such weird issues.
2017-01-20 11:25:27 +01:00
2768e623a9
Cycles: Another attempt to fix crashes on AVX2 processors
...
Basically don't use rcp() in areas which seems to be critical after
second look. Also disabled some multiplication operators, not sure
yet why they might be a problem.
Tomorrow will be setting up a full test with all cases which were
buggy in our farm to see if this fix is complete.
2017-01-20 11:25:26 +01:00
2b87d3b6cc
Cycles: Fix compilation error of AVX2 kernel without SSE math
2017-01-20 11:25:26 +01:00
d00172217b
Cycles: Completely disable transform SSE for now
...
Was causing issues on another frame.
On a tight schedule, disabling for now so artists are happy.
Still looking into root of the issue!
2017-01-20 11:25:26 +01:00
d6e01042b9
Cycles: Fix crashes after recent optimization commits
...
There is some precision issues for big magnitude coordinates which started
to give weird behavior of release builds. Some weird memory usage in BVH
which is tricky to nail down because only happens in release builds and GDB
reports all variables as optimized out when trying to use RelWithDebInfo.
There are two things in this commit:
- Attempt to make vectorized code closer to original one, hoping that it'll
eliminate precision issue.
This seems to work for transform_point().
- Similar trick did not work for transform_direction() even tho absolute
error here is much smaller. For now disabled that function, need a more
careful look here.
2017-01-20 11:25:26 +01:00
2956203221
Cycles: Fix for fix (tm)
...
Sorry guys, for some reason read the expression back-to-front
and did wrong fix :S
2017-01-20 11:25:26 +01:00
c1d25de806
Cycles: Fix typo in previous commit for BVH improvements
2017-01-20 11:25:26 +01:00
98bdc56e4e
Cycles: Enable SSE math optimization for AVX kernels
...
This gives about 5% speedup for AVX processors.
Benefit of such optimization on other microarchitectures is still
under investigation.
2017-01-20 11:25:25 +01:00
cdf556d974
Cycles: Use new SSE version of offset calculation for all QBVH flavors
...
Gives up to ~1% speedup again.
While it seems to be small, still nice since the code now is actually more
clean that it used to be before.
2017-01-20 11:25:25 +01:00
8ea5cbd89b
Cycles: Move QBVH near/far offset calculation to an utility function
...
Just preparing for new optimization to be used in all traversal implementation.
Should be no measurable difference.
2017-01-20 11:25:25 +01:00
612604f23a
Cycles: BVH-related SSE optimization
...
Several ideas here:
- Optimize calculation of near_{x,y,z} in a way that does not require
3 if() statements per update, which avoids negative effect of wrong
branch prediction.
- Optimization of direction clamping for BVH.
- Optimization of point/direction transform.
Brings ~1.5% speedup again depending on a scene (unfortunately, this
speedup can't be sum across all previous commits because speedup of
each of the changes varies from scene to scene, but it still seems to
be nice solid speedup of few percent on Linux and bigger speedup was
reported on Windows).
Once again ,thanks Maxym for inspiration!
Still TODO: We have multiple places where we need to calculate near
x,y,z indices in BVH, for now it's only done for main BVH traversal.
Will try to move this calculation to an utility function and see if
that can be easily re-used across all the BVH flavors.
2017-01-20 11:25:25 +01:00
4db44cee9f
Cycles: Avoid branching in SSE version of intersection pre-calculation
...
Similar to the previous commit, avoid negative effect of bad branch prediction.
Gives measurable performance up to ~2% in tests here.
Once again, thanks to Maxym Dmytrychenko!
2017-01-20 11:25:25 +01:00
c5f4837603
Cycles: Implement SSE-optimized path of util_max_axis()
...
The idea here is to avoid if statements which could cause wrong
branch prediction.
Gives a bit of measurable speedup up to ~1%. Still nice :)
Inspired by Maxym Dmytrychenko, thanks!
2017-01-20 11:25:25 +01:00
10e583533b
Cycles: Add AVX2 path to subsurface triangle intersection
...
Similar to regular triangle intersection case. Gives about 3% speedup rendering
SSS object on my desktop,
Question: how to avoid such a code duplication in a nice way without speed loss?
2017-01-20 11:25:24 +01:00
3a142ec55a
Cycles: Cleanup, style
2017-01-20 11:25:23 +01:00
Hristo Gueorguiev
e2dd5f15d9
Cycles: OpenCL 3d textures support.
...
Note that volume rendering is not supported yet, this is a step towards that.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2299
2017-01-20 11:25:03 +01:00
7bddb79f49
Cycles: Fix another OpenCL logging issue
...
Previously an error message would be printed whenever the OpenCL build produced output.
However, some frameworks seem to print extra information even if the build succeeded, so now the actual returned error is checked as well.
When --debug-cycles is activated, the build output will always be printed, otherwise it only gets printed if there was an error.
2017-01-20 11:25:03 +01:00
3778475c61
Fix T49630: Cycles: Swapped shader and bake kernels
...
The problem here was, as the title says, that the two kernels were swapped.
Since shader evaluation is only used for building the samling map when World MIS is enabled, rendering without it would still work fine, although baking also was broken.
2017-01-20 11:25:03 +01:00
edac0e7b17
Cycles: Improve OpenCL kernel compilation logging
...
The previous refactor changed the code to use a separate logging mechanism to support multithreaded compilation.
However, since that's not supported by any frameworks yes, it just resulted in bad logging behaviour.
So, this commit changes the logging to go diectly to stdout/stderr once again by default.
2017-01-20 11:25:03 +01:00
290e37dce1
Cycles: Disable optimization of operator / for float3
...
This was giving some speedup but made intersection tests to fail
from watertight point of view.
Needs deeper investigation, but need to quickly get it fixed for
the studio.
2017-01-20 11:25:03 +01:00
f9b0c10d04
Fix build error with WITH_CYCLES_NATIVE_ONLY and recent AVX2 changes.
2017-01-20 11:25:03 +01:00
87ca259433
Cycles: Use const reference for register variables in non-OpenCL code
...
This is something tested by @LazyDodo and suggested by Maxym to make
MSVC happier.
2017-01-20 11:25:03 +01:00
73bae90620
Cycles: Use more SSE intrinsics for float3 type
...
This gives about 5% speedup on AVX2 kernels (other kernels still
have SSE disabled for math operations) and this solves the slowdown
of koro scene mention in the previous commit.
The title says it all actually. This commit also contains
changes to pass float3 as const reference in affected functions.
This should make MSVC happier without breaking OpenCL because it's
only done in areas which are ifdef-ed for non-OpenCL.
Another patch based on inspiration from Maxym Dmytrychenko, thanks!
2017-01-20 11:25:02 +01:00
c01d7c8a8f
Cycles: Implement AVX2 version of triangle_intersect
...
This commit basically vectorizes existing code using AVX2 instructions
(without modifying algorithm itself). This gives quite nice speedups:
BMW: -8%
Classroom: -5%
Cat: -5%
Koro: +1%
Barcelona: -8%
That's on Linux machine, reported performance improvement on Windows
goes up to 20%.
Not currently sure why Koro is somewhat slower because it mainly uses
curve intersection tests, could be a time noise? Or osmething with the
cache utilization perhaps? In any case speedup in other scenes makes
me thinking that current state is acceptable for initial implementation.
This is again inspired by Maxym Dmytrychenko.
2017-01-20 11:25:02 +01:00
804d4719c6
Cycles: Add new avxf vectorized data type
...
Based on existing ssef data type and to my knowledge it's also what happens in
Embree nowadays.
Inspired by Maxym Dmytrychenko and required for the upcoming triangle
intersection commit.
Hopefully the copyright message is correct.
2017-01-20 11:25:02 +01:00
19203b42ed
Cycles: Enable SSE options of math module for AVX2 kernels
...
Currently this does not give measurable difference, but is required
ground work for some upcoming further optimization of AVX2 kernels.
2017-01-20 11:25:02 +01:00
dff65a0e6f
Cycles: Cleanup, style
2017-01-20 11:25:02 +01:00
3d7eb44707
Cycles: Split device_opencl.cpp into multiple files for easier maintenance
...
There are no user-visible changes, just some internal restructuring.
Differential Revision: https://developer.blender.org/D2231
2017-01-20 11:25:02 +01:00
acd02c7848
[Windows/Cycles/Clang] Fix compilation error with clang-cl on windows
2017-01-20 11:25:02 +01:00
2482bb1d72
Cycles: implement partial constant folding for exponentiation.
...
This is also an important mathematical operation that can be folded
if it is known that one argument is a certain constant. For colors
the operation is provided as a Gamma node.
The SVM Gamma node needs a small fix to make it follow the 0 ^ 0 == 1
rule, same as the Power node, or the Gamma node itself in OSL mode.
Reviewers: #cycles
Differential Revision: https://developer.blender.org/D2263
2017-01-20 11:25:01 +01:00
7ef3dfef6e
Cycles: Cleanup, indentation
2017-01-20 11:25:01 +01:00
e716f10ba9
Cycles: Use correct light sampling PDF for MIS calculation with Branched Path Tracing
...
The light sampling functions calculate light sampling PDF for the case that the light has been randomly selected out of all lights.
However, since BPT handles lamps and meshlights separately, this isn't the case. So, to avoid a wrong result, the code just included the 0.5 factor in the throughput.
In theory, however, the correction should be made to the sampling probability, which needs to be doubled. Now, for the regular calculation, that's no real difference since the throughput is divided by the pdf.
However, it does matter for the MIS calculation - it's unbiased both ways, but including the factor in the PDF instead of the throughput should give slightly better results.
Reviewers: sergey, brecht, dingto, juicyfruit
Differential Revision: https://developer.blender.org/D2258
2017-01-20 11:25:01 +01:00
e04cc46b83
Cycles: Cleanup, whitespace
2017-01-20 11:25:01 +01:00
35346dc8e7
Cycles: Make code more uniform across two versions of shadow_blocked()
...
Just to make it easier to research ways of possible code de-duplication.
2017-01-20 11:25:01 +01:00
3f4bac1fe1
Cycles: Remove out of date comment
2017-01-20 11:25:01 +01:00
a27dd4bf85
Cycles: Make regular bvh traversal functions close to each other
2017-01-20 11:25:00 +01:00
2f2849fca8
Cycles: Re-group ifdef so we check for particular feature only once
2017-01-20 11:25:00 +01:00
1b9ea14782
Cycles: Avoid conversion from bool to uint
2017-01-20 11:25:00 +01:00
518f88efaa
Cycles: Cleanup code style in split kernel
2017-01-20 11:25:00 +01:00
3cc7567607
Cycles: More tweaks to make specialized BVH traversal matching
2017-01-20 11:25:00 +01:00
a9b92fc29b
Cycles: Avoid redundant intersection pre-calculation
2017-01-20 11:25:00 +01:00
c526932b31
Cycles: Cleanup, sync some comments across different traversal
2017-01-20 11:24:59 +01:00
85225c56b5
Cycles: Cleanup, always use parenthesis
...
Makes it simpler to compare different traversal algorithms.
2017-01-20 11:24:59 +01:00
92e70d7d8f
Revert "Cycles: Tweak empty boundbox children"
...
This reverts commit ecbfa31caa
.
Original commit broke logic in nodes re-fitting. That area can
access non-existing children momentarely. Not sure what would
be best solution here, for now simply reverting the change/
2017-01-20 11:24:59 +01:00
9c15fad5c5
Cycles: Deduplicate light pass code
2017-01-20 11:24:59 +01:00
9f4fe1df8d
Cycles: Stop lamp sampling if the lamp isn't visible
...
Both spot and area light have large areas where they're not visible.
Therefore, this patch stops the light sampling code when one of these cases (outside of the spotlight cone or behind the area light) occurs, before the lamp shader is evaluated.
In the case of the area light, the solid angle sampling can also be skipped.
In a test scene with Sample All Lights and 18 Area lamps and 9 Spot lamps that all point away from the area that the camera sees, render time drops from 12sec to 5sec.
Reviewers: brecht, sergey, dingto, juicyfruit
Differential Revision: https://developer.blender.org/D2216
2017-01-20 11:24:59 +01:00
f1fe4eb3d1
Cycles: Also support the constant emission speedup for mesh lights
...
Reviewers: brecht, sergey, dingto, juicyfruit
Differential Revision: https://developer.blender.org/D2220
2017-01-20 11:24:59 +01:00
da234142b8
Cycles: Implement threaded SVM nodes compilation
...
The title says it all actually. From tests with barber shop scene here
gives 2-3x speedup for shader compilation on my oldie i7 machine. The
gain is mainly due to textures metadata query from jpeg files (which
seems to requite de-compression before metadata can be read). But in
theory could give nice improvements for scenes with huge node trees
as well (i'm talking about node trees of complexity of fractal which
we had reports about in the past).
Reviewers: juicyfruit, dingto, lukasstockner97, brecht
Reviewed By: brecht
Subscribers: monio, Blendify
Differential Revision: https://developer.blender.org/D2215
2017-01-20 11:24:58 +01:00
78b472bfa9
Cycles: Tweak empty boundbox children
...
The idea here is to make assert failure to fail sooner on an incorrect
node address rather than later with stack overflow.
2017-01-20 11:24:58 +01:00
a1c8b3e886
Cycles: Fix compilation error after recent commits
2017-01-20 11:24:58 +01:00
ad0d00e551
Cycles: Use XDG's .cache folder for cached kernels
...
Basically just moves cached kernels from ~/.config/blender/BLENDER_VERSION to
~/.cache/cycles/kernels. This has following benefits:
- Follows XDG specification more closely,
not as if it's totally crucial or measurable by users, but still nice.
- Prevents unexpected sizes of config folder, makes disk space used in more
predictable for users way.
- Allows to share kernels across multiple Blender versions,
which makes it easier debugging at the times close to release.
- "Copy Previous Settings" operator will no longer be copying possibly
gigabytes of cached kernels, which used to lead to really nast disk usage
and annoying delays of copying settings.
- In the future we can have some smart logic to clear old unused cached
kernels.
Currently only done for Linux and OSX. Windows still follows old "cache"
folder logic, but it's not really important for now because we don't
support kernel compilation on this platform yet.
Reviewers: dingto, juicyfruit, brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2197
2017-01-20 11:24:58 +01:00
c9adc55801
Cycles: Add overall timing log to SVNShaderManager
2017-01-20 11:24:58 +01:00
6ba920dec1
Cycles: Deduplicate QBVH node packing across BVH build and refit
2017-01-20 11:24:58 +01:00
e439892b14
Cycles: Don't run full shader evaluation for constant emission lamps
...
Most of the time, Lamps in Cycles are just a constant emission closure, no texturing etc. Therefore, running a full shader evaluation is wasteful.
To avoid that, Cycles now detects these constant emission shaders and stores their value in the lamp data along with a flag in the shader.
Then, at runtime, if this flag is set, the lamp code just uses this value and only runs the full shader evaluation if it is neccessary.
In scenes with a lot of lamps and with "Sample all direct/indirect" enabled, this saves up to 20% of rendering time in my tests.
Reviewers: #cycles
Differential Revision: https://developer.blender.org/D2193
2017-01-20 11:24:57 +01:00
c9dd9fceaa
Cycles: Revert cleanup commit, will make it easier to cherry-pick
2017-01-20 11:02:20 +01:00
d159161155
retain existing creases, added inner crease and interpolate edge data with carve now
2017-01-08 14:31:01 +01:00
0bc63068ce
crash fix for particle grid emission, do not allow to re-distribute particles there...
2017-01-05 01:39:28 +01:00
32e56f5d55
fix when using inner vertexgroup, weights of other vgroups on the same mesh were deleted by accident then
2017-01-03 00:12:18 +01:00
039be9e3c9
fracture modifier RNA refactor, outsourced FM RNA code and python API code to separate files
2016-12-31 00:33:57 +01:00
cde4150d7b
fix for crash with physical rough edges (via addon)
...
caused by not checking whether objects in rigidbody group are rigidbodies, actually.
2016-12-30 17:10:25 +01:00
cbdb75682d
let weights fade out at breaking locations with dynamic fracture
2016-12-23 20:25:00 +01:00
809d1aa1e0
transfer all speeds with dynamic fracture now, not only those above the sleep threshold
2016-12-23 20:24:08 +01:00
4916e0b79b
particles, only suppress unborn particles when density vgroup is empty / has zero weight
2016-12-23 20:23:28 +01:00
f16d7f481f
fix for external FM mode, take object locations into account as centroids for physics shapes, too
2016-12-22 03:05:34 +01:00
420ea4423e
particle system: allow changing vgroups over time, suppress emission on empty assigned density vgroups
2016-12-22 00:31:42 +01:00
229688fee1
fix attempt for avoiding unintentional dissolve of all constraints in dynamic fracture
2016-12-22 00:25:24 +01:00
90d644fca4
fix : inner vertexgroups created with fractal boolean now too
2016-12-22 00:24:32 +01:00
751d2354c2
crash fix with FM and forcefields
2016-12-19 22:34:49 +01:00
41ae74df12
added some random rotation for fast bisect, to reduce parallel cuts
2016-12-16 00:48:30 +01:00
025aae4413
support for keeping edge data in fracture modifier (like sharp edges)
2016-12-16 00:15:12 +01:00
a5047171b9
inter-objects constraint objects can now determine which shards (closest) will be connected to the other object
2016-12-15 18:34:50 +01:00
ae9d247ea5
small fix for compounds, new collision suppression is disabled for them now
...
it caused wrong behavior - one shard always fell off unintendedly.
2016-12-15 00:30:40 +01:00
e5fc4218c7
fix for constraint loop detection (meshislands indirectly connected by a loop should get the same constraint index now)
2016-12-14 01:40:05 +01:00
2984406082
limit the collision check to objects which are actually constrained (whether disabled or not)
...
additionally take value of "disable collisions flag" into account, omit check if constrainted objects shall collide
2016-12-14 00:27:47 +01:00
f39585c387
hrm forgot something in last commit
2016-12-13 23:49:04 +01:00
a0d52d8e02
further attempt to suppress "unnecessary" collisions when constraints are intact
2016-12-13 23:46:12 +01:00
be4bd5ee69
optimization attempt to suppress collisions among partially constrained objects
2016-12-13 17:10:10 +01:00
d74d156c96
fix for rotational and splinter (with splitshards) issues in dynamic fracture
2016-12-13 11:25:11 +01:00
ef78283dd3
fix attempt for getting better fractal details, using bbox center and a smaller fractal plane now
2016-12-12 22:11:27 +01:00
c01dc55212
crash fix for having less shards than connections in connected fractured objects
2016-12-12 22:08:52 +01:00
3d7b6b6b34
crash fix attempt for connected fm objects
2016-12-12 20:43:36 +01:00
30fc776a68
improvements for inter-object constraints and fix for dissolve constraint when not kinematic (needs to be triggered still)
2016-12-12 14:24:04 +01:00
88fc1dd846
first attempt of inter-object constraints with fracture modifier, via regular constraint / connect operator
2016-12-12 00:26:25 +01:00
0749338492
added new trigger settings: propagate trigger, dynamic trigger and constraint dissolve
...
propagate trigger allows to propagate impulses across different FM objects, dynamic trigger can start a dynamic fracture independent from force, and constraint dissolve means that all constraints of activated shards will be disabled immediately
2016-12-11 19:44:01 +01:00
10d2c861dd
fix for constraint calculation, transform of meshisland centroid was calculated incorrectly
2016-12-07 22:53:59 +01:00
069be54c87
speed optimization for fractal boolean, about 10x (note, Inner UV might not work with fractal still)
...
before there was a regression, 10 shards with default settings ~ 7 secs, now 100 in same time (left uv boxpacking out)
2016-12-06 23:30:18 +01:00
da2e66e106
small typo fix for mousebased fracture, used wrong index variable name
2016-12-01 23:50:58 +01:00
4777b17ec5
fix for physics visualization in FM, strings for constraint identifiers were not displayed properly under windows
2016-12-01 11:32:02 +01:00
2b25fe3e1c
fix for possibly different object / shard order after loading a baked simulation
2016-11-28 22:45:49 +01:00
77599a6be0
fix for crash of loading files with split shards or island detection in fracture
2016-11-28 00:52:46 +01:00
1eabe30d34
stability fix for dynamic fractal, use triangulated cutter planes now and ensure they go through the shard's centroid
2016-11-26 11:47:10 +01:00
672c7d72c2
fixes / cleanup after static analysis of code which showed some potential issues
2016-11-25 21:00:33 +01:00
5148fd7f14
typo fix
2016-11-25 19:04:08 +01:00
8dfff7d339
partial crash fix for dynamic fractal fracture, can still crash in carve and bullet (todo)
2016-11-25 18:19:27 +01:00
509ffe1002
fix for missing omp condition evaluation (should work for boolean now only, because it causes errors with other algorithms)
2016-11-24 19:42:47 +01:00
b472f86804
bugfix / performance fix and new option "constrained collison"
...
bugfix: switching from kinematic to simulated should work now, performance improvements with dynamic fracture,
new option just exposes the disable collision flag to FM (works inverted here, enable it to let constrained objects collide, disable for default behavior)
2016-11-20 16:35:24 +01:00
ed840c8efb
fix, let the FM shards respond to animated gravity in scene
2016-11-07 21:26:59 +01:00
f5da9bc306
corrected centroid calculation by using exact center of mass centroid
2016-11-07 18:10:57 +01:00
d7651d65de
fix for crash when appending node groups if Fracture Modifier is active and frame > 1
2016-11-02 20:40:31 +01:00
2d1c068048
argh, missed some default setting for FM for grease pencil edge mode, before this fix no fracture at all was performed, and added bmesh tool flag for grease pencil fracture, too
2016-11-02 19:44:14 +01:00
b674ffb6da
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.78-release' into fracture_modifier
...
Conflicts:
source/blender/makesrna/intern/rna_modifier.c
2016-10-26 19:30:29 +02:00
e8299c8100
Cycles: Don't use guarded vector for statically initialized data
...
This will confuse hell of a guarded allocators because it is possible
to have allocation happened prior to Blender's guarded allocator is
fully initialized.
This was causing crashes and assert failures when running blender
with fully guarded memory allocator.
2016-10-24 14:20:27 +02:00
21bf863934
Cycles: Fix shadowing variable which also causes use of uninitialized variable
...
Was causing wrong aperture for panorama cameras.
Seems to be a regression in 371d357
.
2016-10-24 14:05:55 +02:00
0b734f0b59
Fix: Grease Pencil palettes were missing a RNA path callback
2016-10-24 13:51:57 +02:00
759b5fb2a6
Fix Cycles address space OpenCL error after recent fix.
2016-10-24 13:46:45 +02:00
f0adb875cf
Cycles: Fix static initialization order fiasco
...
Initialization order of global stats and node types was not strictly
defined and it was possible to have node types initialized first and
stats after that. This will zero out memory which was allocated from
the statistics causing assert failure when de-initializing node types.
2016-10-24 13:43:55 +02:00
f55221e0a1
Cycles: Fix uninitialized variable from the previous commit
2016-10-24 12:55:05 +02:00
59689bed7b
Blender 2.78: Point submodules to a new hash
2016-10-24 12:40:14 +02:00
20e54c99d2
Cycles: Remove explicit std:: from types where possible
...
We have our own abstraction level on top of the STL's implementation.
This commit will guarantee our tweaks are used for all cases.
2016-10-24 12:39:15 +02:00
faaf033d36
Blender 2.78: Port style cleanup from Cycles
...
Kinda nice to have official release code to be really clean.
2016-10-24 12:38:33 +02:00
66ed7d7566
Fix T49818: Crash when rendering with motion blur
...
It was possible to have non-initialized unaligned BVH split
to be used when regular BVH split SAH was inf. Now we ensure
that unaligned splitter is only used when it's really initialized.
It's a regression and should be in 2.78a.
2016-10-24 12:34:02 +02:00
a80104fb31
Cycles: Cleanup, spaces
2016-10-24 12:34:02 +02:00
452d43b1c8
Fix T49827L Crash linking material while in Material viewport shading mode
...
Material linking might and does change the way how drawObject is calculated
but does not tag drawObject for recalculation in any way.
Now use dependency graph to tag draw object for reclaculation. Currently do
this using OB_RECALC_DATA taq since tagging is not very granular yet. In the
future we can introduce ore granular tagging in the new dependency graph
easily.
Simple and safe for 2.78a.
2016-10-24 12:34:02 +02:00
602b2dbd8c
Fix mistake in BKE_mesh_new_from_object handling of materials in MetaBall case.
...
Typo, spoted by Coverity scan.
To be backported to 2.78a.
2016-10-24 12:34:01 +02:00
4c94e327a2
Fix T49750: Cycles wrong ray differentials for perspective and stereo cameras.
2016-10-24 12:34:01 +02:00
7b311c07ee
Fix T49656: Crash when starting playback while using JACK audio with A/V sync
...
When ED_screen_animation_play is called from wm_event_do_handlers,ScrArea *sa = CTX_wm_area(C); is NULL in ED_screen_animation_timer.
Informing the audio system in CTX_data_main_set, that a new Main has been set.
2016-10-24 12:34:01 +02:00
1bcddea00e
Fix T49764: Audio strips crackle when animating the volume
...
- Implemented linear interpolation for volume changes in the software
mixer.
- Using this in the software device.
2016-10-24 12:34:01 +02:00
e1cf002ee6
Fix T49789: Compositor mix node interpolation bug
2016-10-24 12:34:01 +02:00
dac53963a8
Fix T49797: Exception from scene update handler might leak external engine descriptors
...
This was causing memory leaks in Cycles.
Some more detailed information in the comment in the code.
Seems to be safe and nice enough for 2.78a.
2016-10-24 12:34:01 +02:00
53cbda0f7f
Fix T49793 : Fix enabling SSE2 globally for msvc.
...
When feeding msvc both /arch:sse2 and /arch:sse it's not smart enough to pick the best option, just goes with the last option
2016-10-24 12:34:01 +02:00
Scott Wu
cb44a3e5d7
Cycles: use near clipping distance in panorama camera.
...
Reviewed By: sergey, brecht, dfelinto
Differential Revision: https://developer.blender.org/D1952
2016-10-24 12:34:01 +02:00
07c886e976
Blender 2.78a release: Use proper "a' on the splash
2016-10-19 16:56:44 +02:00
2e77ad7f99
Blender 2.78a release: Update addons submodule hash
2016-10-19 15:16:04 +02:00
3da4560143
Fix T49775: Appending data with internal dependency cycles prevents correct clearing of linked data-blocks.
...
This is not a simple fix, but imho still needs to be backported to 2.78a...
2016-10-19 14:53:52 +02:00
4d043db0db
[windows] Create A Blender Desktop Shortcut in the msi installer , fixes T49522
2016-10-19 14:27:30 +02:00
44372d6441
Fix T49722: Appending Bug (Groups).
...
One day we'll have to reconsider why some many 'real' ID usages are not
refcounting... :(
To be backported to 2.78a.
2016-10-19 14:27:28 +02:00
50751d62e9
Fix T49738: Hair Add Brush doesn't work
...
the issue was caused by wrong default value for brush particle count
which was clamped on display from 0 to 1. This is technically a regression
but how to port this to 2.78a?
2016-10-19 14:27:08 +02:00
a6220f459b
Fix T49746: crash loading user preferences with missing operators.
2016-10-19 14:26:42 +02:00
Chase Willden
8030c4832a
Fix assert in the wrong place, should be moved earlier to do anything.
...
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2304
2016-10-19 14:26:42 +02:00
Julian Eisel
00d08c909d
Fix missing outliner redraw when adding VSE strip
...
Needed for outliner "Sequence" display mode.
2016-10-19 14:26:42 +02:00
d1f5c0fe48
Fix T49571: 2d stabilize keys not visible in the Graph Editor and Dope Sheet
2016-10-19 14:26:42 +02:00
dacb53ff71
Fix T49601: Material menu length problem.
...
Regression from rB69b66d549bcc8, was supposed to be non-functionnal
change, so not sure why search menu was reduced here? For now, restore
to 2.77 width.
2016-10-19 14:26:42 +02:00
e6d9b15ab3
Fix T49646: Switching from large to small image can get stuck zoom at max zoom distance.
...
Allow for zooming in at max zoom distance.
Reviewed By: Severin
Differential Revision: https://developer.blender.org/D2291
2016-10-19 14:26:42 +02:00
3fb0c1b8e7
Fix T49534: 2.78 Wrong texture scaling in material viewport
...
Seems to be a bug in original implementation of a830280
: code was always
using tangent space instead of UV map because it had the same name. Now
prefer UVMap over tangent because this is how Cycles works. At least it's
closer to.
Not sure it the save+reload issue is still relevant after this fix, that
needs to be double-checked.
Thanks @dfelinto for looking into the report and simplifying the case.
Should be included into 2.78a.
2016-10-19 14:26:42 +02:00
fd9aa06440
Fix OLD pre-git links in the API, add missing factory-startup option to blender executions.
...
Reviewers: mont29
Reviewed By: mont29
Tags: #bf_blender, #python, #infrastructure:_websites
Differential Revision: https://developer.blender.org/D2290
2016-10-19 14:26:41 +02:00
03f935961a
Fix T49635: column_flow Layout - last column is too small.
...
Column flow layout was abuse ui_item_fit in a weird way, which was
broken for last column items.
Now rather use own code, which basically spread available width as
equally as possible between all columns.
2016-10-19 14:26:41 +02:00
15134cf227
Cleanup: UI layout: remove unsed and confusing parameter.
...
Things are complicated enough like that, no need to add useless noise on
top of it!
2016-10-19 14:26:41 +02:00
106ff0df99
Normal edit modifier: Fix relation builder for the new dependency graph
2016-10-19 14:26:41 +02:00
7ab972fd63
Ammend to rB00dc0666b3fe: forgot to fix boid->ground of first particle.
...
This code is confusing, such dirty details should not sneak out of
particles' own private code. :(
2016-10-19 14:26:41 +02:00
97bba76e8c
Fix T49631: radial control operators not using DPI properly.
2016-10-19 14:26:41 +02:00
10598c084e
Fix T49640: Cycles constant folding incorrect for texture coordinates.
2016-10-19 14:26:41 +02:00
c9b5253cfc
Fix T49636: material draw mode crash with displacement and missing group input node.
2016-10-19 14:26:41 +02:00
2002334813
Cycles: Get rid of ifdef-ed noinline policy
2016-10-19 14:26:41 +02:00
b42e4c3c40
Cycles: Fix use of uninitialized variable in SSS
...
When ray hits curve segment with SSS shader it was possible to have
uninitialized hit_P variable used for sampling.
Seems that was a reason of our headache of difference between AVX2
and SSE4 render results here, so now we can revert all the nasty
ifdef-ed inline policies.
2016-10-19 14:26:41 +02:00
9d4e3b0e63
Fix T49622: Grease pencil not rendering out of VSE
2016-10-19 14:26:40 +02:00
4736664da6
Fix T49502: file browser on OS X not highlighting external drives.
2016-10-19 14:26:40 +02:00
8ebc7565e7
Fix T49629: Graph editor normalize function doesn't work on f-curves with a constant key value
...
Technically it is a regression in behavior and should be 2.78a.
2016-10-19 14:26:40 +02:00
012bbce453
Make console message more clear for --scene argument
2016-10-19 14:26:40 +02:00
be254b52dc
Fix T49623: Immediately crash trying to render attached file in Cycles
...
Original fix in this area was not really complete (but was the safest at
the release time). Now all the crazy configurations of slots going out
of sync should be handled here.
2016-10-19 14:26:40 +02:00
cdedd082f3
Fix viewport camera gets out of sync in certain cases
...
It was possible to have two viewports opened and start using Ctrl-0
to make different objects an active camera for the viewport. This
worked fine for viewports which had decoupled camera from the scene,
but if viewport was locked to scene camera it was possible to run into
situation when two different viewports are locked to scene camera but
had different v3d->camera pointers.
2016-10-19 14:26:40 +02:00
880ebfff58
Fix T49609: Point density textures: vertex colors are not properly averaged in BI
...
Nice to have in 2.78a, though not a regression.
2016-10-19 14:26:40 +02:00
29fdcbbf9f
Fix T49608: runtime-only particle's boid->ground Object pointer was left dangling to invalid value in read code...
2016-10-19 14:26:40 +02:00
cb6c43b61c
Fix a few compile errors with C++11 on macOS.
2016-10-19 14:26:40 +02:00
4dbcbf5ba9
BLI_task: fix case were some pool could work in more threads than allowed.
...
We were checking for number of tasks from given pool already active, and
then atomically increasing it if allowed - this is not correct, number
could be increased by another thread between check and atomic op!
Atomic primitives are nice, but you must be very careful with *how* you
use them... Now we atomically increase counter, check result, and if we
end up over max value, abort and decrease counter again.
Spotted by Sergey, thanks!
2016-10-19 14:26:40 +02:00
117329ae6d
Cycles: Fix OpenCL split kernel compilation after recent CUDA 8 performance fix
2016-10-19 14:26:39 +02:00
6601b4cbdc
Datablock management: remove 'proxy_from' pointer from 'is ID used' checks.
...
Pretty much same reason as for the 'from' pointer of shapekeys - runtime
data creating loops and 'ghost' dependencies between datablocks.
We need to handle them in cases like remapping, but whall not take them
into account to check dependencies between datablocks... :/
2016-10-19 14:26:39 +02:00
02eec191fb
Fix T49595: bpy - negative skin_vertices radius crashes Blender
...
This is unsigned value (negative radius does not have much sense anyway!).
2016-10-19 14:26:39 +02:00
Julian Eisel
2525c4e129
Fix wrong separator line width after drawing vec icon
...
Was visible in Dynamic Context Menu add-on.
2016-10-19 14:26:39 +02:00
0d1bc587fa
Fix T49523: very slow normal map tangent computation for rendering in 2.78.
2016-10-19 14:26:39 +02:00
e65e5045de
Fix T49501: Animations imported via alembic render with wrong or no motion blur
2016-10-19 14:26:39 +02:00
b9c996e16b
[msvc] make.bat, no need to set the cuda path at all, cmake will figure it out on it's own.
2016-10-19 14:26:39 +02:00
96ac3bd4bf
[msvc] make.bat remove mixed cuda 7.5/8.0 build for release since all kernels can now be properly build with 8.0
2016-10-19 14:26:39 +02:00
1d36092627
Cleanup: Update links to online py API doc, and remove old commented stuff.
2016-10-19 14:26:39 +02:00
b8194a52a0
Fix T49553: Blender 2.78 crashes when File->Data Previews ->Refresh Datablock Previews
...
New recursive iteration over IDs in BKE_library_foreach_ID_link() was
broken by the infamous nodetree case. We cannot really recusively call
this function in that case, so better to deffer handling of
non-datablock NodeTrees as if real IDs here.
Also fixed initial ID not being stored as handled, in rare cases this
could also lead to infinite looping.
To be backported to 2.78a.
2016-10-19 14:26:39 +02:00
f87a81afb4
Cycles CUDA: make CUDA 8.0 the officially supported version for all platforms.
2016-10-19 14:26:39 +02:00
fd0dea585c
Fix Cycles CUDA performance on CUDA 8.0.
...
Mostly this is making inlining match CUDA 7.5 in a few performance critical
places. The end result is that performance is now better than before, possibly
due to less register spilling or other CUDA 8.0 compiler improvements.
On benchmarks scenes, there are 3% to 35% render time reductions. Stack memory
usage is reduced a little too.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D2269
2016-10-19 14:26:38 +02:00
Julian Eisel
4d14bd10c0
Fix memory leak caused by unknown opeartor of keymap item
2016-10-19 14:26:38 +02:00
4640bf890e
Fix T49548: Entering Cycles Rendered Viewport Unlinks Material from Objects.
...
We *always* want to increase mat user count when from Object (and not
Data), because in that case we are moving mat from object to temp
generated mesh, material can never be 'borrowed' in that case.
To be backported to 2.78a
2016-10-19 14:26:38 +02:00
Julian Eisel
e145990fdd
Fix missing operator-type registration
...
Removed in a7dbc0704f
, but only should've removed default keymap entry.
2016-10-19 14:26:38 +02:00
Julian Eisel
11120c2981
Fix T49506: Remove unused File Browser theme settings
...
If I didn't miss anything these are indeed not used. Old themes should still work (will only print info on redundant theme defines into console), but updated non-contrib themes already.
2016-10-19 14:26:38 +02:00
07508c8b93
Fix missing new eyedropper keymap entry in keyconfig_utils.py
...
Missing from rBe9bcdcdbbd91d9.
2016-10-19 14:26:38 +02:00
e96e66b05b
Fix T49520: broken vertex colors in the game engine.
2016-10-19 14:26:38 +02:00
52e601f0c6
[Fix unreported bug] Snap align with normal was not working in derivade mesh
...
The `use_snapp_align_rotation` option was using only the first vertex
2016-10-19 14:26:38 +02:00
01b71b564b
[msvc] make.bat - Fix:msbuild platform wasn't set when the architecture was auto detected.
2016-10-19 14:26:38 +02:00
9fea90ba36
Fix T49502: file browser on OS X not highlighting system folders and bookmarks.
2016-10-19 14:26:38 +02:00
4a8c43d756
[MSVC] Make.bat updates.
...
- Explicitly specify the platform for msbuild, to facilitate builds with just the Visual C++ Build Tools installed.
- When vs2013 is not found, try looking for 2015 as a fallback
- Clear up any batch variables that might have been set from previous runs
2016-10-19 14:26:37 +02:00
4da266f48c
Fix wrong Cycles GLSL pointiness, still not supported but should be neutral 0.5.
2016-10-19 14:26:37 +02:00
90e1adabba
Fix MSVC compiler warning due to using */* to start comment.
2016-10-19 14:26:37 +02:00
02605b72f1
CUEW: Use latest upstream version
...
Fixes typo in README :)
Thanks to @jesterKing !
2016-10-19 14:26:37 +02:00
7b43307508
Fix T49489: Pose marker in camera action + marker bound to camera -> crash.
...
'camera' Object pointer of TimeMarkers is a 'temp' hack since Durian project...
Would need to be either made definitive now, or removed/reworked/whatever.
But since we intend to use that object pointer for other needs, and current code
could lead to crashing .blend files, for now let's fix that mess (was missing
some bits in read code, and also totally ignored in libquery code).
Should be safe for 2.78a.
2016-10-19 14:26:37 +02:00
f978deddf8
UPBGE: Fix crash when calling shade_light texture when mtex has no tex.
2016-10-19 14:26:37 +02:00
dadd017d06
Cycles: Support earlier tile rendering termination on cancel
...
It will discard the whole tile, but it's still kind of more friendly than
fully locked interface (sort of) for until tile is fully sampled.
Sorry if it causes PITA to merge for the opencl split work, but this issue
bothering a lot when collecting benchmarks.
2016-10-19 14:26:37 +02:00
08d21ff582
Cycles: Fix typo in shader cancel routines
2016-10-19 14:26:37 +02:00
1733141db8
Adopt referenced scene in the context when evaluating sequences within a Scene Strip
...
This change makes it so that when the sequences within a Scene strip are
evaluated, they use the Scene that they come from as the context as opposed
the Scene that the Scene strip is in. This is necessary, for example, in the
case of the MulticamSelector where it needs to reference strips in the original
Scene as opposed to the Scene where the Scene strip is located.
Patch by @Matt (HyperSphere), thanks!
2016-10-19 14:26:37 +02:00
0df78d11e0
Cycles: Improve OpenCL line information handling
...
Previously it was falling back to just a path after #include
statement was finished. Now we fall back to a proper current
file name after dealing with the preprocessor statement.
2016-10-19 14:26:37 +02:00
acaa046e5e
Update source tgz builder script
...
Was broken since splitting BKE_blender_version from BKE_blender.
2016-10-19 14:26:36 +02:00
7466603910
[MSVC] make.bat updates.
...
- The build folder name used to be depended on the order of the parameters, this is now normalized to
"build_windows_[Release/Full/Lite/Headless/Cycles/Bpy]_[x86/x64]_vc[12/14]_[Release/Debug]" regardless of the order of the parameters.
-Use CUDA8 for all kernels when building the release convenience target with visual studio 2015
2016-10-19 14:26:36 +02:00
08e4846540
Fix T49478: triangulate of face hangs Blender.
...
Another case of float imprecision leading to endless loop. INcreasing a bit 'noise threashold' seems to work OK.
Not a regression, but might be nice to have in 2.78a.
2016-10-19 14:26:36 +02:00
6c2f93aa7a
Cycles: Fix compilation error with minimal feature set
2016-10-19 14:26:36 +02:00
949b23d29b
Fix T49471: Vertex Connect randomly broken.
...
Not sure where this comes from, but code was converting BMEdge* to BMVert* to check oflags,
i.e. not accessing correct memory.
Regression, to be backported to 2.78a.
2016-10-19 14:26:36 +02:00
8aa04160ba
Fix T49460: Particle group instance 'Use Count' value gets reset on file-load.
...
Regression caused rBbcc863993ad, write code was assuming dw->ob was always valid,
wich is no more the case right after reading file e.g.
Another good example of how bad it is to use 'hidden' dependencies between datablocks. :(
And another fix to be backported to 2.78a. :(((
2016-10-19 14:26:36 +02:00
d78a4b0c62
Fix T49466: Stupid typo in logicbricks new copy code from rB776a8548f03a
...
Moved that code forth and back a few times while creating rB776a8548f03a fix,
ended up forgetting to update it correctly for function where it layed down in the end.
Last-minute fixes are never a good thing... Now we already have real reason for 2.78 'a' release :(
2016-10-19 14:26:36 +02:00
a05f9bef3f
Fix T49423: Data Preview of group containing only group instances is empty.
...
Code was not getting correct boundbox in some cases (group only instancing other groups e.g.), now
compute our own bbox in those cases.
Based on patch by @lichtwerk , but extended the fix to include linked datablocks in some cases
(linked objects in local groups, linked objects in local scene, etc.), this was also broken in existing code.
Reviewers: mont29
Subscribers: duarteframos
Differential Revision: https://developer.blender.org/D2257
2016-10-19 14:26:36 +02:00
a88af3e576
Fix T49461: Dynamic paint wetmap flickers.
...
Regression from rBa4a968f, we would adjust current point's wetness without actually protecting it
in new multi-threaded context, leading to concurrent access mess.
Now delay applying wetness reduction to current point to end of function, allows us to avoid having
to lock current point twice together with neighbor one (and reducing spinlock awainting too).
To be backported to 2.78a.
2016-10-19 14:26:36 +02:00
ff27b58b4c
Fix T49464: Data Transfer modifier slows down redraw of window.
...
Never call function that might recompute a DM in an RNA itemf callback (or any UI-related func in general)!
There was an XXX comment asking if this was OK - well, no, it was not. :P
Could be ported back to some 2.78 flavour should we need it.
2016-10-19 14:26:35 +02:00
3bf9cbe7a2
Fix export image generated by export UV layout
...
Was only happening with new dependency graph.
The issue here is that scene's depsgraph layers will be 0 unless
it was ever visible. Worked around by checking for 0 layer in the
update_tagged of new depsgraph. This currently kind of following
logic of visible_layers, but is weak.
Committing so studio is unlocked here, will re-evaluate this layer.
2016-10-19 14:26:35 +02:00
cb9d010421
Fix Scene datablocks being created with a real user while never having any real datablock user.
...
Now using new system dedicated to that kind of cases, id_ensure_real_user(), instead.
That way, usercount of Scenes is handled correctly at deletion time.
Reported by @sergey over IRC, thanks.
2016-10-19 14:26:35 +02:00
c1205fd5ec
[Windows/make.bat] Clean only after all parameters have been processed so the full path is known, and require a convenience target to be set. Also added a helpful error message if any of the required data is not available.
2016-10-19 14:26:35 +02:00
c9361c6935
Cycles: Cleanup file headers
...
Some of the files were wrongly attributing code to some other
organizations and in few places proper attribution was missing.
This is mainly either a copy-paste error (when new file was
created from an existing one and header wasn't updated) or due
to some refactor which split non-original-BF code with purely
BF code.
Should solve some confusion around.
2016-10-19 14:26:35 +02:00
711421a90f
Cycles: Move BVH constants to an own files, so they are easily re-usable
2016-10-19 14:26:35 +02:00
0972786fa4
Buildbot: Another attempt to have OSX builder fixed
2016-10-19 14:26:35 +02:00
61ae5f1b23
Buildbot: Temporary disable CUBIN compilation
2016-10-19 14:26:35 +02:00
d882d4e91d
Buildbot: Attempt to use proper Clang for CUDA binaries
2016-10-19 14:26:35 +02:00
bd4185b03b
Buildbot: Disable QuickTime for the time being
...
Buildbot machine was updated to the new SDK which seems to have
QTKit removed.
For until we've installed older SDK or ported our code to a new
AVFramework disabling QuickTime.
2016-10-19 14:26:35 +02:00
Julian Eisel
483b4f0567
Fix missing properties editor update when changing 3D View camera
...
Actually two errors here:
* Properties editor wasn't refreshing on (NC_SCENE | ND_RENDER_OPTIONS) notifiers
* Was using notifier info bits wrongly, needs to send two separate notifiers
Decided to remove ND_RENDER_OPTIONS rather than adding properties editor scene context refresh for it, this is more than a render option change.
2016-10-19 14:26:34 +02:00
bdbf608941
OpenGL render: Skip GP passes if viewport has GP visibility disabled
2016-10-19 14:26:34 +02:00
b148eda5a7
dynamic fracture, divide force by mass to get higher probability of secondary fractures
2016-10-13 23:22:28 +02:00
bf3bb95097
added dynamic minimum shard size as option
2016-10-13 21:51:35 +02:00
eb45c12ef0
dynamic fracture, fix for passive shards... dynamic cache was not used at all for it
2016-10-13 20:10:52 +02:00
6276e3d174
dynamic fracture, added a third new constraint option "none"
2016-10-13 00:52:23 +02:00
41481a1be6
dynamic frac fixes (better activation, ability to merge cluster count and group)
2016-10-12 22:32:47 +02:00
a3704e9b6b
crash fixes for dynamic split, also attempt to get rotations correct with limit impact
2016-10-12 17:25:13 +02:00
8e166a5926
fix, break anyway if there are no constraints at all
2016-10-12 12:13:37 +02:00
d22d1bae7c
added constraint dynamic percentage and dynamic constraint building option
2016-10-12 12:06:21 +02:00
f8a043a106
another fix attempt for rotational anomalies
2016-10-12 01:23:07 +02:00
0a15defd44
partial fix attempt for incorrect rotation issue with dynafrac
2016-10-11 21:40:57 +02:00
d735ec0a2e
minor fix for dynamic fracture, there was an off by 1 error which caused strange behavior on single shards
2016-10-11 01:22:34 +02:00
0b0fe66838
vary the seed when using presplit in dynafrac and fix for error when applying split to a single island
2016-10-10 23:24:16 +02:00
c9446653e9
improvement of pre-split dynamic fracture
2016-10-10 18:56:47 +02:00
d6574abb83
added split shards to island support for dynamic fracture (works only good if there are multiple islands)
2016-10-09 13:36:50 +02:00
5d6a36eb59
dynamic fracture, further minor transform tweak
2016-10-08 15:27:00 +02:00
794f85516c
another minor tweak for transform issue
2016-10-08 00:22:59 +02:00
b5834d39ac
fix for dynafrac, disallow passive objects as triggers again (to avoid the ground being a trigger)
2016-10-07 22:45:31 +02:00
5ce8f72a12
further attempt to fix / get the transform issues under control with dynafrac
2016-10-07 22:35:09 +02:00
81a67d8e98
fixed some more transform issues with dynamic fracture, added openmp for loop for boolean fracturing
2016-10-06 22:20:58 +02:00
5a46ad276c
dynamic fracture, attempt to better control the higher level fractures via threshold
2016-10-06 17:49:32 +02:00
7c4489be8f
partial fix for dynamic fracture transform issues, impact points might be calculated incorrectly still.
2016-10-05 22:16:18 +02:00
05c64b674a
dynamic fracture, fix for texture propagation and autohide on secondary fractures
2016-10-05 17:29:22 +02:00
f0058e4980
Fix elbeem omp for msvc
2016-10-04 00:03:07 +02:00
8bd2323829
further tweaks for dynamic fracture
2016-10-03 15:11:24 +02:00
cc00da895e
dynamic fracture: added back constraint support for it
2016-10-03 01:21:23 +02:00
63f90d1099
dynamic fracture, crash fix for autohide
2016-10-02 18:24:00 +02:00
030bb2f7e0
8% faster fluidbaking with gcc and 30% faster with clang
2016-10-02 17:58:40 +02:00
ed54923768
attempt to keep shards not affected by fracture kinematic if the object is kinematic / triggered
2016-10-02 13:51:47 +02:00
009dacd317
fixed some warning issues (const vs non const, wrong variable type in format string)
2016-10-01 18:06:52 +02:00
72f52c2dae
backport of "fix Mac build for Xcode < 8" to FM branch
...
This was added to 2.78 release branch after the merge, so adding it here too.
2016-10-01 16:22:01 +02:00
723cb3c1ae
added README
2016-10-01 14:31:28 +02:00
1f88e48d08
dynamic fracture can now react to multiple impacts on initial shard and 1st level shards
2016-10-01 14:25:27 +02:00
6b550a563e
crash fix for direct text fracture (prefractured) -> bmesh use_toolflags set incorrectly
2016-09-28 22:52:10 +02:00
a6ebe080f7
windows compile fix
2016-09-28 12:47:22 +02:00
0b13b7adef
fix Mac build for Xcode < 8
...
We need a long-term fix, but this will get 2.78 out the door.
2016-09-28 10:41:56 +02:00
192a18a99d
added new bmesh boolean solver to fracture modifier as well
2016-09-28 00:01:28 +02:00
07e45ea86c
merge compile fixes
2016-09-27 21:46:59 +02:00
23aabf5c81
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.78-release' into fracture_modifier
...
Conflicts:
CMakeLists.txt
build_files/build_environment/install_deps.sh
build_files/cmake/macros.cmake
doc/python_api/sphinx_doc_gen.sh
intern/cycles/app/CMakeLists.txt
intern/cycles/blender/addon/properties.py
intern/cycles/blender/blender_sync.cpp
intern/cycles/kernel/bvh/bvh.h
intern/cycles/kernel/geom/geom_bvh_volume.h
intern/cycles/kernel/geom/geom_bvh_volume_all.h
intern/cycles/kernel/kernel_volume.h
intern/cycles/kernel/kernels/opencl/kernel.cl
intern/cycles/kernel/shaders/node_subsurface_scattering.osl
intern/cycles/kernel/svm/svm_closure.h
intern/cycles/util/util_vector.h
release/datafiles/splash.png
release/datafiles/splash_2x.png
release/scripts/addons
source/blender/blenfont/intern/blf_font.c
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/BKE_mesh_mapping.h
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/particle_distribute.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenkernel/intern/scene.c
source/blender/blenkernel/intern/speaker.c
source/blender/blenloader/intern/readfile.c
source/blender/bmesh/intern/bmesh_core.c
source/blender/bmesh/intern/bmesh_polygon.c
source/blender/editors/gpencil/gpencil_brush.c
source/blender/editors/gpencil/gpencil_ops.c
source/blender/editors/object/object_relations.c
source/blender/editors/physics/particle_edit.c
source/blender/editors/space_view3d/drawarmature.c
source/blender/editors/space_view3d/drawvolume.c
source/blender/editors/transform/transform_snap.c
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/intern/rna_camera.c
source/blender/makesrna/intern/rna_modifier.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_util.c
source/blender/nodes/shader/nodes/node_shader_bump.c
source/blender/nodes/shader/nodes/node_shader_fresnel.c
source/blender/nodes/shader/nodes/node_shader_normal_map.c
source/blender/render/intern/source/render_result.c
source/blender/render/intern/source/render_texture.c
source/blender/windowmanager/WM_api.h
source/creator/CMakeLists.txt
2016-09-27 21:46:27 +02:00
4bb1e224ba
Blender 2.78: Update submodule hashes
2016-09-26 14:42:18 +02:00
2c19ddf4a6
Cycles: Fix T49411: Multiscatter GGX with zero roughness when Filter Glossy is enabled
2016-09-26 10:51:51 +02:00
6d483e20e0
Fix T49310: incorrect Cycles standalone normals with negative scale.
2016-09-26 10:51:51 +02:00
599e560a68
Cycles: Fix overflow caused by wrong size calculation in Mesh::add_undisplaced
2016-09-26 10:51:51 +02:00
daa1487425
Cycles: Prevent crash in special cases when object has less slots than mesh
...
This is something what was guaranteed in give_current_material(), just
copied some range checking logic from there.
Not sure what would be a proper fix here tho.
2016-09-26 10:51:51 +02:00
abc8810911
Cycles: Don't sum up memory usage of all devices together for the stats
2016-09-26 10:51:50 +02:00
5cb1251222
Fix T49417: Cycles crash - can't use 5 Gigabyte Tile EXR texture file
...
Was an integer overflow issue when calculating offsets.
2016-09-26 10:51:50 +02:00
c5558b3ccd
Fix crash in own recent rB776a8548f03a049.
...
New ID may be null, have to check this too!
Reported by @panzergame over IRC, thanks.
To be ported to 2.78 as well.
2016-09-26 10:51:50 +02:00
94e91ca7e5
Fix T49430: append scene with gamelogic broken.
...
In fact, it was the whole remapping process that was broken in logic bricks area,
due to terrible design of links between those bricks...
Object copying was also broken in that case, fixed as well.
To be backported to 2.78.
Note that issue was actually probably there since ages, hidden behind dirty hacks
used in previous append code (though likely visible in some corner cases).
Listen kids: do not, never, ever, do what has been done for links between logic bricks. Never. Ever.
Even as pure runtime data it would have been bad, but as stored data...
2016-09-26 10:51:50 +02:00
4ed7fb581a
Fix T49441: Grease Pencil - pie menu - brush name field crashes blender
...
Using context.active_gpencil_brush to access the active Grease Pencil brush
would result in a crash if trying to rename the brush, because the "ID" pointer
was not set.
To be backported to 2.78
2016-09-26 10:51:50 +02:00
08d14a86d4
Collada: Trying to get rid of some warning messages on linux
2016-09-26 10:51:50 +02:00
a5d8efe16c
Collada: Trying to get rif of some warning messages on linux
2016-09-26 10:51:49 +02:00
01ed1de0d8
Fix: Collada Importer did not import the Blender Profile information correctly when multiple objects are bound to same armature. This caused Bone tails to be placed wrong.
2016-09-26 10:51:49 +02:00
a2e105186f
some improvement for dynamic fracture, it now takes location and size of impact object into account with "Limit Impact"
2016-09-25 21:38:06 +02:00
35f81587b5
Fix T49427: Drivers of Shapekeys break when Append a group.
...
Optimization attempt with BKE_library_idtype_can_use_idtype() was not taking into account
the fact that drivers may link virtually against any datablock...
Has to be rethinked, but for after 2.78 release, this commit is safe to backport.
2016-09-22 16:52:10 +02:00
d32ae028ba
Buildinfo: Improve behavior with detached HEAD
...
Try real hard to detect which branch we've detached from.
2016-09-22 15:02:52 +02:00
42f42cbfdc
Fix T49425: Freestyle in viewport keeps updating over and over.
...
Regression caused by rBb27ba26, we would always tag datablocks to update in G.main,
ignoring given bmain, now always use this one instead.
To be backported to 2.78.
2016-09-22 15:02:32 +02:00
Julian Eisel
53ff09bc97
GPencil: Fix memory leak using stroke arrange OP
2016-09-22 15:02:25 +02:00
de311a0a15
Blender 2.78: Point locales to the latest branch
2016-09-22 12:37:35 +02:00
f3fe4e736f
Cycles: Soft minimum for dice rates
...
Use 0.5 as a soft minimum for dice rates to help from setting them too
low. Lower values can still be set by typing in the value.
2016-09-22 12:33:32 +02:00
5ef46c1ef1
Cycles: Fix update of subdivision meshes when global dice rates change
...
When subdivision settings were moved from meshes to objects this was missed,
should work fine now.
2016-09-22 12:33:32 +02:00
7da7611c0b
Cycles: Adaptive isolation
...
Idea here is to select the lowest isolation level that wont compromise quality.
By using the lowest level we save memory and processing time. This will also
help avoid precision issues that have been showing up from using the highest
level (T49179, T49257).
This is a pretty simple heuristic that gives ok results. There's more we could
do here, such as filtering for vertices/edges adjacent geometric features that
need isolation instead of checking them all, but the logic there could get a
bit involved.
There's potential for slight popping of edges during animation if the dice
rate is low, but I don't think this should be a problem since low dice rates
really shouldn't be used in animation anyways.
Reviewed By: brecht, sergey
Differential Revision: https://developer.blender.org/D2240
2016-09-22 12:33:32 +02:00
d14603021c
Blender 2.78: Point addons to an updated branch
2016-09-22 11:14:48 +02:00
bca6aa47bc
Blender 2.78: Move to release cycle
2016-09-22 11:13:58 +02:00
d63505e42e
CMake: Fix copy-paste error
2016-09-22 11:07:37 +02:00
9836940d4d
Bring blender_release.cmake uptodate with the changes from D2227
2016-09-22 11:07:37 +02:00
c6ab7c31a1
[windows] add some helpers to make.bat to facilitate making release builds.
...
New features:
1) Release target that checks for both cuda 7.5 and 8 with WITH_CYCLES_CUDA_BINARIES=ON and CYCLES_CUDA_BINARIES_ARCH=sm_20;sm_21;sm_30;sm_35;sm_37;sm_50;sm_52;sm_60;sm_61 options set.
2) Option to switch between x86 and x64 builds, the default remains (auto detect the architecture) but can be overridden.
3) Option to switch between vs12(2013) and vs14(2015) default is 2013.
Reviewers: juicyfruit, sergey
Reviewed By: sergey
Tags: #platform:_windows
Differential Revision: https://developer.blender.org/D2180
2016-09-22 11:07:37 +02:00
22b39901e3
Fix non-finite normalization factor in certain cases
2016-09-22 11:07:37 +02:00
213e9aeb8c
Fix: Grease Pencil sculpting crashes when sculpting on layers without any strokes
...
Reported by @loochmunz. I've also gone through checking for and fixing other places
where this was also occurring.
To be included in 2.78
2016-09-22 11:07:37 +02:00
9d976a4f7a
GPencil D+W Pie: Don't show editing operators when not in editmode
...
These operators only operate on the selected strokes, but when not in editmode,
stroke vertices are not shown.
Safe for 2.78
2016-09-22 11:07:37 +02:00
83bbf57b5b
regression fix for 1346482d23
: The length of leaf bones should always be set to the length of the smallest bone. since the mentioned commit the importer did only recalculate the leaf bone length when the 'fix leaf bones' option was also enabled.
2016-09-22 11:07:36 +02:00
ea7d500b6d
Fix T49386: Blender crashes when told to load an OCIO LUT that does not exist
2016-09-22 11:07:36 +02:00
0a97e63246
Fix T49375: align rotation with snap target isn't toggleable in edit mode.
...
Based on D2237, but fixed patch always hiding 'snap on self' button...
Should be safe for 2.78.
2016-09-22 11:07:36 +02:00
Martijn Berger
0247547b6b
Lowercase includes for psapi.h and dbghelp.h windows includes.
...
This makes cross compilation a little less painful
2016-09-22 11:07:36 +02:00
1782263ef8
CacheFile: make sure SpinLock is destroyed when exiting Blender.
...
Missed in rB62b1cdd6.
2016-09-22 11:07:36 +02:00
c8c829360b
Cycles: Fix typo that would sometimes result in subsurf modifier being disabled
2016-09-22 11:07:36 +02:00
750650c737
Fix T49245: Adaptive Subdivision with Auto Smooth causes weird mesh appearance
2016-09-22 11:07:36 +02:00
8e6aaa08c2
Fix T49384: crash in tangent space calculation with NaN mesh vertices.
2016-09-22 11:07:35 +02:00
fc2b8c9793
Fix T49372: Fresnel node: difference between 2.76 and 2.78 GLSL output
2016-09-22 11:07:35 +02:00
8909ff0e67
Fix filebrowser not getting back to valid dir in Release builds.
...
Stupid mistake wrapping path validation code inside a BLI_assert, which means it was
only called in Debug builds...
Found by Sergey, thanks.
Should be backported to 2.78.
2016-09-22 11:07:35 +02:00
7b748e9478
Fix crash in some cases when deleting particle systems.
...
Those 'never null' ID pointers are really a PITA to handle... luckily we don't have much of those around!
Found by Sybren, thanks.
Should be backported to 2.78.
2016-09-22 11:07:35 +02:00
4733544195
Fix Py's IDs user mapping: do not consider ShapeKeys' from here.
...
This is internal pointer helper for scene evaluation and tools, though exposed to bpy API,
it can give false 'dependency cycles' in bpy.data.user_map() results.
That's followup to rBe007552442634 really, both should be backported to 2.78
2016-09-22 11:07:35 +02:00
ca5f91951c
Fix Py's IDs user mapping: do not consider proxy_from here.
...
This is internal pointer helper for scene evaluation and tools, it's not exposed to bpy API anyway,
and can give false 'dependency cycles' in bpy.data.user_map() results.
Found by sybren in his Splode work.
2016-09-22 11:07:35 +02:00
0960d523a2
Fix T49179: Parts of mesh disappear with adaptive subdivision
...
Problem was zero length normal caused by a precision issue in patch evaluation.
This is somewhat of a quick fix, but is better than allowing possible NaNs to
occur and cause problems elsewhere.
2016-09-22 11:07:35 +02:00
91966eeefa
fix Mac build with Xcode 8
...
Small issues in GHOST
- use NSApplicationDelegate protocol for our app delegate
- make sure NSApp is initialized before using
(cherry picked from commit df7be04ca6
)
2016-09-22 11:07:34 +02:00
fb85484e6c
Fix memory leak in copy pose operator
2016-09-22 11:07:34 +02:00
9d70344620
Blender 2.78: Point locales to a new branch hash
2016-09-14 16:46:07 +02:00
d5eb0b58a0
Cleanup: Fix epic indent failure in previous commit :/
2016-09-14 16:24:16 +02:00
c11fcc34c4
Fix missing PaintCurves list in bpy.data
...
Minimal list features for now, no add/remove stuff, that we can add later...
Reported by sybren.
Should be safe for 2.78.
2016-09-14 16:15:58 +02:00
a37e4d4738
Fix T49341: Bad motion blur behavior in Cycles when using Speed effect in Sequencer
...
Cycles was thinking it always rendering integer frame, which is not correct.
2016-09-14 16:14:17 +02:00
14d26df2f1
Fix T49342: TypeError when autocompleting bpy.app.something.
...
Regression from rB036c006cefe471. We can't use self here, self is bpy.app, not pydescriptor of python path getsetter...
So for now, do not try to replace getsetter by actual value in bpy.app's dict,
just return static var generated on first run.
Should be safe for 2.78.
2016-09-14 15:58:17 +02:00
e02c63df1b
Attempt to fix broken path remapping in own rB443b3ca9b9cb.
2016-09-14 13:26:30 +02:00
b6508da380
Code Cleanup: Deduplicate undo node freeing code
2016-09-14 13:26:04 +02:00
929701931d
Fix: GPencil drawing sessions now respect limits for maximum undo steps
...
When drawing with Grease Pencil "continous drawing" for a long time
(i.e. basically, drawing a very large number of strokes), it could be
possible to cause lower-specced machines to run out of RAM and start
swapping. This was because there was no limit on the number of undo
states that the GP undo code was storing; since the undo states grow
exponentially on each stroke (i.e. each stroke results in another undo
state which contains all the existing strokes AND the newest stroke), this
could cause issues when taken to the extreme.
2016-09-14 13:26:01 +02:00
e5f49efe25
Blender 2.78 release: Update addons hash once again
2016-09-14 12:39:07 +02:00
0d7f3d01d7
CMake: decouple WITH_CYCLES_OPENSUBDIV from WITH_OPENSUBDIV, and enable on OS X.
...
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D2227
2016-09-14 12:37:34 +02:00
9a35ebc1ea
Fix two issues related to 'partial' .blend files:
...
I) Filename was not put in temp Main generated to save selected data only,
this was breaking readcode when trying to open partial file, leading to missing
filename in final loaded Main data.
II) Read code would confuse partial .blend files with Undo ones, when they had no screen in them
(which happens to 99.999% of partial .blend files I guess).
Reported by @sybren, thanks.
Should be safe enough for 2.78 release.
2016-09-14 11:41:16 +02:00
df4602ee3b
Fix compilation error: Shadowing of variable
2016-09-14 11:04:34 +02:00
fa47bd1796
2.78 release: Update splash screen label
2016-09-14 10:37:35 +02:00
e38acc2191
2.78 release: Update hash for addons submodule
2016-09-14 10:28:48 +02:00
c6e0c674ee
Fix T35333: Update some WM/UI API functions docstrings.
...
Based on patch by @codemanx , but with slightly less verbose descriptions.
More detailed behavior etc. rather belongs to doc/python_api/examples/bpy.ops.x.py imho.
2016-09-14 10:26:22 +02:00
1e5ac3b648
Fix bpy.data.user_map() ignoring unused datablocks.
...
Should be backported to 2.78.
Found by Sybren here in studio, thanks!
2016-09-14 10:26:22 +02:00
dcccf4be30
Outliner: Report linked datablock edit failure when trying to rename linked data in outliner
2016-09-14 10:26:22 +02:00
50452f5b67
Fix T49323: Ineffective bone roll calculation with low rig scale
...
The code was expecting vector to be normalized, however after
applying inverted object matrix it was possible to have scale
applied to it.
2016-09-14 10:26:21 +02:00
4271c1cc71
Fix T49336: Outliner allows to edit restrict flags for linked objects
2016-09-14 10:26:21 +02:00
290e650590
Fix T49290: Specific .blend with hair crashes in MacOS 2.78 RC1 on render
...
The issue was caused by some false-positive empty non-AABB intersection.
Tried to tweak it a bit so it does not record intersection anymore.
Hopefully will work for all platforms. Tested here on iMac and Debian.
2016-09-14 10:26:21 +02:00
5de77bf8dc
Fix T49327: Cycles OSL Mode: RGB Curves node only outputs gray scale images
...
To be backported to 2.78 release.
2016-09-14 10:26:21 +02:00
90f920c138
Fix T49296, assert failure in Bevel code.
...
The mesh interpolation function failed to fill a fractions-of-the-way
array properly when the distances are very small but nonzero.
2016-09-14 10:26:21 +02:00
b11f073ca0
Cycles: Fix wrong SSS in combination with hair on AVX2 platform
...
Not sure why exactly that happened, need a closer look.
2016-09-14 10:26:21 +02:00
293d5db895
Cycles: Fix shading and crashes resulting from constant folding on displacement
...
Constant folding was removing all nodes connected to the displacement output
if they evaluated to a constant, causing there to be no valid graph for
displacement even when there was displacement to be applied, and sometimes
caused crashes.
2016-09-14 10:26:21 +02:00
fd01cd7d06
Cycles: Replace object index hack with actual checks for SD_TRANSFORM_APPLIED
...
Using ones complement for detecting if transform has been applied was confusing
and led to several bugs. With this proper checks are made.
Also added a few transforms where they were missing, mostly affecting baking
and displacement when `P` is used in the shader (previously `P` was in the
wrong space for these shaders)
Also removed `TIME_INVALID` as this may have resulted in incorrect
transforms in some cases.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2192
2016-09-14 10:26:21 +02:00
2c1201502d
Cycles: Fix bump mapping to use object space when used with true displacement
...
Bump mapping was happening in world space while displacement happens in object
space, causing shading errors when displacement type was used with bump mapping.
To fix this the proper transforms are added to bump nodes. This is only done
for automatic bump mapping however, to avoid visual changes from other uses of
bump mapping. It would be nice to do this for all bump mapping to be consistent
but that will have to wait till we can break compatibility.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2191
2016-09-14 10:26:20 +02:00
b67db67b01
[CMAKE/Platform/Windows] Only perform version check if the actual compiler is MSVC
2016-09-14 10:26:20 +02:00
Dmitry Dygalo
872065e19e
Fix undefined variable on errors in Cycles ctests.
...
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2201
2016-09-14 10:26:20 +02:00
f6fb072ab2
Fix OpenSubdiv related buffer overrun with multiple FVar channels.
...
The existing code uses the input value count of the first channel
for all of them. If the first channel is the largest, it leads to
a crash-causing buffer overrun in memcpy below. Likely this was
left since the time when only one channel was supported.
As a crash fix, probably should go into 2.78
2016-09-14 10:26:20 +02:00
16135990cd
Fix missing 'prop_required' flags in some ID RNA funcs.
...
Not critical, but would rather have this in 2.78 (for API doc reasons mostly).
2016-09-14 10:26:20 +02:00
00abe6ecf1
Fix/Workaround T49297: Crash related to custom data draw (Blender with ASAN)
...
Root of the issue is that active render index became wrong. This is the actual
thing to be fixed, but as usual this is quite tricky to reproduce. Since such
bad situation might have happened more and fix isn't really difficult or
intruisive let's avoid crash for now.
Can be revisited once we figure out root of the issue.
Nice for 2.78 release.
2016-09-14 10:26:20 +02:00
3f5960b869
Fix T49299: Removing offset object in modifiers doesn't update mesh.
...
Own fault in new ID management work, thought rebuild the DAG itself was
enough to actually update whole scene, but we actually need to tag datablocks
for update as well, when we change (or remove) one of their ID pointers...
2016-09-14 10:26:20 +02:00
fb2a412b56
Cycles: Fix regular BVH nodes refit
...
For proper indexing to work we need to use unaligned node with
identity transform instead of aligned nodes when doing refit.
To be backported to 2.78 release.
2016-09-14 10:26:20 +02:00
30aaa92a19
Cycles: Add asserts to BVH node packing
2016-09-14 10:26:19 +02:00
979a4a613c
Cycles: Cleanup: line wrapping
2016-09-14 10:26:19 +02:00
faec666bbe
Fix T49283: Crash in BKE_ptcache_make_particle_key.
...
This is really hack-fix actually, not sure why `get_pointcache_keys_for_time()` seems to assume
it will always find key for given part index at least for current frame, and whether this assumption
is wrong or whether bug happens elsewhere...
Anyway, this is to be wiped out in 2.8, so no point loosing too much time on it, for now merely
returning unchanged (i.e. zero'ed) ParticleKeys in case index2 is invalid. Won't hurt anyway,
even if this did not crash in release builds, would be returning giberish values.
2016-09-14 10:26:19 +02:00
320d601e01
Fix T49286: Compilation error with XCode 7.0
...
Weirdly enough, this version of XCode seems to have static_assert()
even when NOT using C++11. This is totally weird and counter intuitive
since static_assert() is supposed to be C++11 onlky feature.
Can XCode stop using future, please? :)
2016-09-14 10:26:19 +02:00
e6071056a4
Cycles: Fix OpenCL speed regression introduced with the improved bump mapping
...
The two SVM nodes added with e7ea1ae78c
caused a slowdown on AMD cards when rendering with OpenCL, whether displacement was used or not.
In the Barcelona Pavillon scene on a RX480, this would cause a 12% slowdown.
Therefore, this commit adds a additional flag for feature-adaptive compilation so that the new SVM nodes are only enabled when they are needed (Node tree connected to the Displacement output and Displacement type set to Both).
Also, the nodes were also added to shaders when the Displacement Type was set to Bump (the default), which was unneccessary and is fixed now.
Thanks to linda2 on IRC for reporting and testing and to maiself for help with the displacement shader code.
This fix might be relevant for 2.78, but it should be tested further before including it.
2016-09-14 10:26:19 +02:00
4929de9df7
Fix T49273: Crash during access to dupli weights at launch time.
...
See commit's comments for details, but this boils down to: do not try to use
purely runtime cache data as a 'real' ID pointer in readcode, it's likely
doomed to fail in some cases, and is bad practice in any case!
Thix fix implies dupliweight's object will be invalid until first scene update
(i.e. first particles evaluation).
2016-09-14 10:26:19 +02:00
9663471bb7
OpenSubdiv: Support multiple materials drawing in Cycles textured view
...
Consider for inclusion into 2.78.
2016-09-14 10:26:19 +02:00
abe4c38410
[cmake/cpack] allow override of package name
...
Cpack generates a standard filename with git information in it, which might not always be wanted for release builds, this patch adds an option to override that default filename.
Reviewers: sergey, juicyfruit
Reviewed By: juicyfruit
Differential Revision: https://developer.blender.org/D2199
ammended to fix: wrong variable name in main CMakeLists.txt
2016-09-14 10:26:19 +02:00
7aa0103ca2
Revert "Depsgraph: Prioritize evaluation of the new scheduled nodes"
...
This reverts commit 9444cd56db
.
This commit caused some flickering in the bones when swapping IK to Fk.
While it's unclear why such change caused any regressions, let's revert
it to unlock the studio.
2016-09-14 10:26:18 +02:00
fcb7973849
[cmake/cpack] allow override of package name
...
Cpack generates a standard filename with git information in it, which might not always be wanted for release builds, this patch adds an option to override that default filename.
Reviewers: sergey, juicyfruit
Reviewed By: juicyfruit
Differential Revision: https://developer.blender.org/D2199
2016-09-14 10:26:18 +02:00
b281df01c7
Fix T41883: Strip keyframes not respected for scenes rendered by other scenes
2016-09-14 10:26:18 +02:00
8e7d6561f5
Add script which scales splash screen down
...
Based on reading documentation around. This particular version
is based on the ImageMagic documentation which could be found
there:
http://www.imagemagick.org/Usage/filter/
http://www.imagemagick.org/Usage/filter/nicolas/
Current filter is based on measuring mean error with the current
splash screen and choosing combination of parameters which
gives minimal mean error.
2016-09-14 10:26:18 +02:00
559e116a36
Fix cast shadows (material option) in the viewport
...
Fix cast shadows options (in material tab) not working in the viewport.
An off-by-one error. See D2194 for more.
Committing for Ulysse Martin (youle) who found & fixed this.
2016-09-14 10:26:18 +02:00
989ca313be
Fix T49252: Crash when image textures used with true displacement
2016-09-14 10:26:18 +02:00
29f7a4abbd
OpenSubdiv: Fix missing ORCO when enabling OSD but having dependency to the geometry
...
Was causing huge viewport lags.
Reported by angavrilov in IRC, thanks!
Safe and nice for 2.78.
2016-09-14 10:26:18 +02:00
802d253a46
Fix T49251: moving smoke domain with additional resolution causes crash.
...
This is a bug in the multithreaded task manager in negative value range.
The problem here is that if previter is unsigned, the comparison in the
return statement is unsigned, and works incorrectly if stop < 0 &&
iter >= 0. This in turn can happen if stop is close to 0, because this
code is designed to overrun the stop by chunk_size*num_threads as
the threads terminate.
This probably should go into 2.78 as it prevents a crash.
2016-09-14 10:26:18 +02:00
a2e08ef997
Fix own mistake in recent rB8b2a45052093, broke saving render results as images in some cases.
...
Reported by sebastian_k over IRC, thanks.
To be backported to 2.78.
2016-09-14 10:26:18 +02:00
44df27dc71
Attempt to fix compilation error with static boost on certain platforms
...
This was reported in T49231.
2016-09-14 10:26:17 +02:00
98b2411b30
Fix T49226: Incorrect Material viewport shading of Cycles Normal Map node in Edit mode for an object with Array modifier
...
Was incorrect indexing done in the array. Caused by 5abae51
.
Not sure why it needed to be changed here, but array here is supposed to be
a loop data, so bringing back loop index as it originally was. The shading was
wrong in edit mode with BI active as well (so it's not like it's needed for
BI only).
Patch in collaboration with Alexander Gavrilov (angavrilov), thanks!
Should be double-checked and ported to 2.78.
2016-09-14 10:26:17 +02:00
3ea30ce1d0
Fix glUniform called from glBegin/glEnd blocks
...
Was causing some invalid operations in OpenGL.
After more testing should be fine for 2.78.
2016-09-14 10:26:17 +02:00
f496a34700
Fix T49220: Vertex paint doesn't work with OpenSubdiv
...
It's a bit tricky to align vertex color data between Blender and OpenSubdiv
so for now we simply disable OpenSubdiv in the paint modes.
Safe for 2.78.
2016-09-14 10:26:17 +02:00
7a6a7d9f7c
CMake: Skip addons_contrib for release candidate builds
...
Nowadays release candidates are supposed to be as close to the final
release as possible.
Safe for 2.78 release branch.
2016-09-14 10:26:17 +02:00
41141248ef
API doc update script: Fix generated zipfile name, was broken in 'release' case...
2016-09-14 10:26:17 +02:00
e1c1a0c3ee
API doc: add new pure-rsync py script to update API doc on Blender server.
...
The other one (sphinx_doc_gen.sh) needs an ssh account on the server to work - and I hate bash, too! :P
2016-09-14 10:26:17 +02:00
2ef4db4077
Cycles: Fix unreported - Missing node group for the Camera Node
...
Thanks to linda2 for reporting in IRC.
2016-09-14 10:26:17 +02:00
579e8c707b
Alembic: fix parenting issues when an object has multiple curves/points
...
subobjects.
2016-09-14 10:26:17 +02:00
4be5fae30c
Fix T49249: Alembic export with multiple hair systems crash blender
...
Crash was due to a name collision in Alembic objects caused by the fact
that names derive from the one of the Blender object. An object having
multiple particles system would thus give its name to various
subobjects.
Now use the name of the particles system for the Alembic object.
2016-09-14 10:26:17 +02:00
184c781657
Fix a few OpenCL compiler warnings.
2016-09-14 10:26:16 +02:00
91705ad477
fix: not initialised variable can crash blender (related to modifiers with cage editing enabled)
2016-09-14 10:26:16 +02:00
ab934e7d61
Fix T49228: Separate by material, materials dissappear after reload.
...
Yet another mismatch where code would decrease usercount (of Material here) but never increase it again
when re-assigning the datablock...
2016-09-14 10:26:16 +02:00
894a4f5230
Fix T49229: ID user decrement error when deleting group instance twice.
...
Another great example of inconsistency in usercount handling - dupli_group was considered
as refcounted by readfile.c code (and hence by library_query.c one, which is based on it),
but not by editor/BKE_object code, which never increased group's usercount when creating
an instance of it etc.
To be backported to 2.78.
2016-09-14 10:26:16 +02:00
eb85bb008f
windows compile fix, use portable BLI_snprintf instead of snprintf
2016-09-12 19:52:20 +02:00
57c9742438
added global keep shards mode for cutter groups
2016-09-09 14:12:09 +02:00
c04b4d393b
fixes: activating clusters via percentage, add meshisland id as name in fracture too, load crash fix
2016-09-09 13:33:34 +02:00
0e5089c30a
2.78 release: Point locales to a proper updated branch
2016-09-02 11:54:54 +02:00
0dd4c3bde7
fix, enabled threading for autoexecute
2016-08-08 20:13:08 +02:00
659ca6a7d6
added threaded checkbox next to execute fracture operator
2016-08-08 14:53:47 +02:00
be6d3df29b
made threading optional via a checkbox
2016-08-08 14:07:30 +02:00
af118bd3ec
fallback to singlethreaded for dynamic, mousebased and fast bisect.. also changed back fast bisect orderding to have more uniform shapes
2016-08-08 12:38:48 +02:00
0f1f3ca292
first attempt to multithread fracturing, works only for prefractured for now
2016-08-08 00:37:08 +02:00
fe55273199
some more optimizations at bisect, bit faster and less memory consumption, and removing bakes now when refracturing
2016-08-07 16:02:13 +02:00
480a8c2bce
fixes for bisect and bisect+fill, should look correct again and be a bit faster as well
...
using a kdtree based preselection method to speed up bisecting
2016-08-06 11:18:00 +02:00
36f511f9c3
small fix for loading possibly different jack shared library versions on different linux distributions, thanks to sergey for the fix
2016-08-02 15:53:29 +02:00
aaef4310e9
small enhancement for voronoi + bisect and solidify after FM use case
...
if you use voronoi+bisect and solidify after FM, you can automerge now without having autohideable inner faces. This should have the same effect as autohide in regular use case has.
2016-07-25 23:08:46 +02:00
c6f7f3bc38
memory optimization for smoke compressibility fix, dont use recursion but a queue to avoid potential stack overflows, thanks to angavrilov for this optimization
2016-07-23 16:39:25 +02:00
5c8804d6ae
fixes to prevent unwanted smoke "explosions" in the domain when using moving colliders, thanks to angavrilov for investigating those problems and providing this fixes.
2016-07-17 21:31:44 +02:00
8f53838675
attempt to make fast bisect usable with mousebased fracture... now the user has a bit control how the halving is performed via the helpers
2016-07-11 16:42:58 +02:00
d8f5a81a9a
some tweaks for the faster voronoi+bisect method, its faster but not interactive yet... but should mostly lead to correct results
2016-07-09 13:43:36 +02:00
0f48c6a392
attempt to make voronoi+bisect faster, but it has problems with selfintersection, so unfortunately not useable on any
...
model out of the box
2016-07-09 01:35:43 +02:00
89c8718872
fix for converting fm external mode back to objects, used wrong transformation for objects
2016-06-12 17:17:30 +02:00
126e443035
crash fix for starting sim after convert to objects in external mode
...
stale data was around in depsgraph, missed a relations update tag call
2016-06-11 15:56:28 +02:00
785ac13c39
partial solution for FM autoexecute, auto disables when sim runs and is enabled again on startframe
...
note: cache will always be overwritten in autoexec sim mode, because keeping it may lead to incorrect sim results
furthermore a couple of changes for external mode (attempt to be more BCB compatible)
2016-06-02 10:48:29 +02:00
0935d32ffb
fix, force autohide facepair generation only from valid DM
...
if primary source is invalid, force fallback to secondary source earlier now
2016-05-27 20:28:33 +02:00
c6388928e6
crash fix, could happen that the internal ob->derivedFinal DM structures were invalid
...
happened in some cases and most notably under windows when attempting to calculate the DMs bounding box
2016-05-27 10:07:05 +02:00
97f6dc3d10
backport for missing smoke viewport display due to using "min" as variable name
...
This was a fix for T47991 and affects OSX only.
2016-05-23 10:30:56 +02:00
d47aab201f
fix: seems autohide refresh was not triggered each time after loading a file
...
since this is runtime only data force to refresh it now.
2016-04-27 13:30:59 +02:00
4cf48bbe1f
fix for solver / cluster solver iterations override, it caused different behavior at loading / refresh
...
solver iteration override was taken into account too late, after first validation which probably caused different simulation behavior using the default value for one frame
2016-04-08 13:52:38 +02:00
470d0cd6e8
set version char to "a" and cycle to "release"
2016-04-05 20:00:49 +02:00
1e321b998c
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.77-release' into fracture_modifier
2016-04-05 19:58:20 +02:00
89f6987953
Fix UV-Editor crashes w/ over SHRT_MAX UV's
2016-04-05 20:45:38 +10:00
63e0d3a47f
Fix T47705: Freestyle line glitch.
...
The addressed issue is a regression from Blender 2.75, after the internal
switch from double to single precision floating-point numbers in the
Freestyle code base. Face normal calculations require the higher
precision during the computations, even though the results can be stored
as single precision numbers.
2016-04-05 19:34:50 +10:00
2490779013
Correct merge error
2016-04-05 19:02:39 +10:00
8b55e0e877
Remove newly added function (harmless but unused)
2016-04-05 18:58:42 +10:00
d979ba0f73
Blender 2.77a: Point addons to a new submodule hash
2016-04-05 10:55:38 +02:00
19f323012a
Particles: Fix broken grid distribution in some case from own recent rB201d3938622.
2016-04-05 10:51:07 +02:00
e97db72ae4
Fix T47902: Particle grid not using modifier stack, Take II.
...
Now only fix correct handling of use_modifier_stack for grid distribution,
fixing it globally breaks all existing edited hair systems. :/
2016-04-05 10:51:01 +02:00
2d887ae200
Revert "Fix T47902: Particle grid not using modifier stack."
...
This reverts commit 2bd3acf7cd
.
Commit is valid in theory - but in practice, it means nearly all edited hair systems
would need to be re-created from scratch... Not nice, so better revert and note in code
that particle distribution is ugly and does not respect 'use modifier stack' option in most cases.
2016-04-05 10:50:56 +02:00
ebceb93bb4
Fix T47902: Particle grid not using modifier stack.
...
Disclaimer: this is tentative fix, seems to be working but you never know with particles.
If issue arise, we'll just revert this commit and hide 'use modifier stack' option
for grid distribution instead.
This commit also try to make choice of which dm to use during distribution more generic
(deduplication of code), again hopping not to break anything. :P
2016-04-05 10:50:55 +02:00
828c7956c8
Fix error in ghash/gset_ensure_p_ex
...
The key is needed in the case the ghash resizes.
Caused regression T47984.
2016-04-05 18:48:37 +10:00
275ca01eac
Fix T47939, take II: Check clang package version, not llvm-devel one.
...
Looks like some distro still provide llvm-3.4-devel, while no more clang-3.4.
Since clang depends on llvm of same version, check clang only should ensure
us we also have matvhing llvm... *sigh*
2016-04-05 10:46:37 +02:00
95de7b9a5f
Fix T47939: Install Deps OSL 1.7.1 and clang-3.5
...
Until we officially support llvm3.5 or more, only allow for 3.4 llvm packages,
and build own stuff otherwise...
2016-04-05 10:46:28 +02:00
f36de27339
Fix T47848: Fix regression in sequencer GL render
...
Own changes in 2.77 broke off-screen render with scene render size doesn't match output.
2016-04-05 18:45:36 +10:00
fc78a58337
Cycles: Fix wrong camera in volume check when domain is only visible to camera rays
2016-04-05 10:41:46 +02:00
37ab16d075
Cycles: Fix regression caused by recent camera-in-volume commit
...
Stupid me forgot that we don't have stop-element in the stack yet.
2016-04-05 10:36:15 +02:00
da0ce86a3c
Cycles: Make curves modified by a taper object with modifier considered a deform modified
...
That might consider a bit more objects to be considered deform modified,
but it covers common case of using taper object without require of doing
recursive checks.
In worst case it'll be just some extra synchronization time, no render
time difference will happen for false-positive because of extra checks
happening in Cycles.
2016-04-05 10:36:14 +02:00
f615b57379
Fix curve editmode adding 3D primitives w/ 2D curves
2016-04-05 10:36:14 +02:00
a5cfe0f9dc
Fix curve adding 3D nurbs when 2D is set
...
Ctrl-LMB ignored 2D constraint
2016-04-05 10:36:14 +02:00
e63a8e7ded
Fix curve hide keeping spline active
2016-04-05 10:36:14 +02:00
f2ae9c6f85
Fix curve, missing update on Ctrl-LMB
2016-04-05 10:36:14 +02:00
45e68e190d
Fix T47971: rigid body baking crash due to thread race condition.
2016-04-05 10:36:14 +02:00
754566cf5b
Fix T48030: Can't zoom VSE properties panel
2016-04-05 10:36:14 +02:00
3ed49f8bc9
Fix T47505: Cycles OpenCL rendering crash on Windows.
...
Restore the boost bug workaround, but without changing the locale.
2016-04-05 10:36:13 +02:00
0f3d558982
Cycles: Fix wrong camera-in-volume stack when camera ray hits volume domain twice
2016-04-05 10:36:13 +02:00
8e1e3e0228
Fix T48001: Highlighting selected item in filtered lists.
...
active index was not reset to 'nothing' in case actual active item was filtered out.
2016-04-05 10:36:13 +02:00
f4eb7e149a
Knife Project: revert fix for T43896
...
For now leave precision at half a pixel until we have real fix.
Resolves T48023.
2016-04-05 10:36:12 +02:00
713669f7e6
Cycles: Support deformation motion blur for curves deformed by taper
2016-04-05 10:36:12 +02:00
Philipp Oeser
18875f6aa3
Fix T48013: UV Sculpt Brush Does not appear in UV window - but does show up in uv panels (t, n)
...
Epic fail in recent rB2c3985 :/
To be backported to 2.77a!
2016-04-05 10:36:12 +02:00
f590b2f89f
Fix When using keying sets, the toggling "all items" in the array target only goes from the index value down, instead of keying all
2016-04-05 10:36:12 +02:00
81e8bd107f
Hide layers from UI in template
2016-04-05 10:36:12 +02:00
a66116f543
Fix T48012: Knife Project crash
2016-04-05 10:36:12 +02:00
b3f08cddf3
Fix NULL check before free
2016-04-05 10:36:12 +02:00
3108861981
Cycles: Fix wrong initialization order of mesh flags and object transform
2016-04-05 10:36:12 +02:00
0fcb17fc4f
Remove the obsolete windows launcher
2016-04-05 10:36:11 +02:00
02081f86d1
CMAKE disable building the windows launcher, fix type in delayloading of debug dll
2016-04-05 10:36:11 +02:00
8efe90f0a0
CMAKE / msvc openmp, delay loading of openmp dll so we can set environment
...
variable before it is loaded
2016-04-05 10:36:11 +02:00
315703d725
Cycles: Aligned vector was not covered by guarded stat
...
This was making stats printed by the logging being wrong: they did not
include such memory as BVH storage.
2016-04-05 10:36:11 +02:00
e69c02a392
cmake fix full debug builds on msvc
2016-04-05 10:36:11 +02:00
4960006b27
Fix T47985: VSE GL-render scene strip hangs
...
Regression in d5f1b9c22
,
threading deadlock rendering a scene from the OpenGL preview.
2016-04-05 10:36:11 +02:00
e4b1b00884
Fix T47983: Particles - Emit from Verts emits double on one vert.
...
When non-random, particle distribution used a small start offset (to avoid
zero-weight faces), which is fine with "continuous" entities like faces, but not
for discrete ones like vertices - in that case it was generating some undesired
"jump" over a few verts in case step was small enough
(i.e. total number of verts/particles was big enough).
2016-04-05 10:36:11 +02:00
96b9f45d7a
Partly fix (unreported) particles not updating correctly when changing settings.
...
Point-cached particles (those using simulations) would not update at all outside of
first frame, due to PSYS_RECALC_RESET flag being ingnored in `system_step()`...
For some mysterious reasons, udate is still non-fully functional outside of startframe
(e.g. changing face distribution between random and jittered), but at least when choosing
'Vertices' you get particles from verts and not faces!
2016-04-05 10:36:11 +02:00
4fc9178af9
CMake cleanup target_link_libraries_decoupled
2016-04-05 10:36:10 +02:00
357787b06b
Fix T46623: OSX bpy.app.binary_path_python incorrect
...
CMake's PYTHON_EXECUTABLE wasn't set.
2016-04-05 10:36:10 +02:00
a80f3d7ddb
Fix T48000: Eyedropper sample-merged ignored at first
2016-04-05 10:36:10 +02:00
97836b7250
Fix T47814: VSE Scene 'Use Sequence' fails
...
Conflict with flags between depsgraph and sequencer caused error.
Now pass state of sequencer parents to avoid recursion.
2016-04-05 10:36:10 +02:00
37a785241b
Fix T47961: Wipe effects should have 2 inputs
2016-04-05 10:36:10 +02:00
2ad02b63e5
Fix T47967: Select next active fails in some cases
...
For cases when there are multiple matches,
find the closest match (with increasingly fuzzy tests) instead of failing.
2016-04-05 10:36:10 +02:00
d17f3c6d56
Fix T47987: Blender Cycles standalone does not properly read UV coordinates from XML
2016-04-05 10:36:10 +02:00
2265628964
Fix T47986: OBJ Import fails w/ imagepath encoding
2016-04-05 10:36:09 +02:00
261c12aab4
Fix T47958: Crash in Walk or Fly Navigation in Camera mode when invoking from non-3DView region
2016-04-05 10:36:09 +02:00
0f5ca755fc
Fix T47969: Select Random always uses same seed
...
Increment the seed on each use,
otherwise calling again selects the same order, unless you manually adjust the seed.
2016-04-05 10:36:09 +02:00
611e544191
Fix T47972: Blender crash showing particle system.
...
Do same as with faces - if no orcodata is available, fill orco with current location...
2016-04-05 10:36:09 +02:00
8aed449528
Fix T47973: Render stamp ignores font alpha
2016-04-05 10:36:09 +02:00
f3259ae602
BLF: alpha support for drawing to buffer
2016-04-05 10:36:09 +02:00
49573b8e39
Fix T47931: Missed world shader update when having object dependency
2016-04-05 10:36:09 +02:00
edb1cc6fa8
Fix T47697: Smoke simulation doesn't work in viewport
...
Seems to be a division by zero error.
Should be safe for an upcoming 'a' release.
2016-04-05 10:36:09 +02:00
ee128c348f
Fix T47962: It's possible to set a Sound strip as a modifier Mask.
2016-04-05 10:36:08 +02:00
18029edf1f
Fix T47758: rigidbody bug with constraint breaking and disable collisions.
...
This is a regression in Bullet, reverted the problematic change for now with
a custom patch.
2016-04-05 10:36:08 +02:00
fa429b3f0c
Fix T47668: Cycles OpenCL glass not rendering correctly on AMD.
...
Work around what appears to be a compiler bug.
2016-04-05 10:36:08 +02:00
7ea29d69df
Fix T47935: Hair particles; The display percentage parameter breaks after a render is done.
...
Follow same logic in `psys_render_restore` as in `psys_render_set` - if hair and
display percentage is not 100%, we have to recompute particles...
With regular 'emitter' particles just hiding some is fine (though using random here
will not give a precise proportion...).
2016-04-05 10:36:08 +02:00
61aea37d35
Fix T47951: UserId problem on reload.
...
readfile.c would increment object usercount in three places, where it should not.
Remember kids: Objects are **only** refcounted by Scene's bases, and Object->proxy!
2016-04-05 10:36:08 +02:00
8aefea0c3a
Fix Cycles debug panel, being shown in BI as well.
2016-04-05 10:36:08 +02:00
721f0089aa
Fix T47928: Crashing save corruption with dynamic paint drip effector groups.
...
Dynapaint's `foreachIDLink` was mnot handling effector_weights->group pointer...
2016-04-05 10:36:08 +02:00
70d417cbe8
Revert "Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis."
...
This reverts commit fe0ca82b23
.
This is a design issue, needs more thinking, for now just revert back to old behavior.
2016-04-05 10:36:08 +02:00
1af7bf3a20
Fix T47910: Knife project fails
...
Regression in fix for T43896, using screen-space precision here is very problematic,
using lower precision here works for both reports.
2016-04-05 10:36:07 +02:00
9a7d576332
Fix T47838: Walk gravity fails w/ intersecting objects
...
Regression in 3ad0344
, fix from @mano-wii .
More comprehensive fix can be done after 2.77a.
2016-04-05 10:36:07 +02:00
5bfa814dcb
Fix T47900: VSE adjustment crashes on blank frame
2016-04-05 10:36:07 +02:00
d21ed9af21
Fix T47893: BGE crashes w/ generated mesh data
2016-04-05 10:36:07 +02:00
e71398f3c7
Fix T47890: Vertex mask w/ subsurf select fails
...
Regression in GL refactor
2016-04-05 10:36:07 +02:00
744ef820d1
Fix incorrect strncat use
2016-04-05 10:36:07 +02:00
f601a4b4f7
Fix T47830: Multi-edit w/ ui-list wont highlight
...
Regression from 4d6b892
.
2016-04-05 10:36:07 +02:00
0889f8c127
Fix for crash of point density textures due to undefined point_data
on loading.
2016-04-05 10:36:06 +02:00
a3ef7c986c
Fix add mesh template
2016-04-05 10:36:06 +02:00
Philipp Oeser
5ac7186633
Fix T47842: UV sculpt brush widgets are available when not in uv sculpt mode.
...
rB5b3af3dd made the poll function here slightly too laxist.
To be backported to 2.77 should we make an 'a' release.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D1861
2016-04-05 10:36:06 +02:00
7a7b242007
Fix T47862: VSE hard cut fails
...
Regression caused by changing how video length is calculated,
however similar problems could be caused by strip length changing on-disk.
2016-04-05 10:36:06 +02:00
f036e1875f
GPU: avoid redundant logic for non-spot lamps
2016-04-05 10:36:06 +02:00
7e29ce8e96
Fix for non spot lamps calculating spot values
...
Logical error in D1378, also incorrectly used lamp type as a flag.
2016-04-05 10:36:06 +02:00
a5bc674e88
Include requests' cacert.pem file
...
This allows us to verify certificates of HTTPS connections, which is
mandatory for logins like on Blender ID.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D1845
2016-04-05 10:36:06 +02:00
4717824f55
Fix T47670: cycles GLSL incorrect normal map node.
2016-04-05 10:36:06 +02:00
4f3178e4a5
Fix T47670: cycles GLSL incorrect layer weight / fresnel.
...
World space and view space normals were mixed up, we should only convert from
world to view space if a custom normal is connected, otherwise it is already in
view space.
2016-04-05 10:36:05 +02:00
a8ee74ed61
fix for rare crash at loading stored constraints
...
added a null pointer check so to prevent a crash atleast
2016-04-04 10:54:19 +02:00
d7eeff23bf
another fix attempt for occasional loading crashes
2016-04-01 16:30:46 +02:00
47adafe20d
fix, forgot to set userpointer in point constraint
2016-04-01 09:46:58 +02:00
0ba11ae9b1
fix, forgot to load participating constraints per meshisland
...
this caused crashes when trying to simulate with percentage breaking
2016-04-01 01:53:56 +02:00
e62c4c822b
fix attempt for crash on loading last blend (quit.blend with dynamic fracture)
2016-03-31 21:36:01 +02:00
790af966a3
crash fix for loading files with dynamic fracture enabled
...
forgot to set runtime listbase pointers of fractureIDs to NULL
2016-03-31 20:07:07 +02:00
b26e1ad0f1
fix for occasional crashes with dynamic fracture while freeing the modifier
...
crash happened with scene objects which had a freed rigidbody world but didnt set the pointer to NULL.
2016-03-31 13:19:14 +02:00
7befec292b
fix for loading splitshards to island blends and clusters properly
...
was necessary to skip "empty shards" properly and keep cluster index
2016-03-31 11:27:06 +02:00
8c70dd87c6
a bit clean up and attempt to reduce dynamic fracture memory leaks
2016-03-30 23:09:52 +02:00
603b9dfbe9
dont suppress undo save/load with dynamic any more
...
this seems a bit more stable, but does crash occasionally too, and may even
corrupt the blend. Workaround, open with official blender and FM is gone, save
and blend should be usable again.
2016-03-30 15:17:54 +02:00
d3cdd5c237
fix for different constraint behavior after refracturing / reloading / param change
...
constraint enabled flags were changed during sim and next sim started with pre-broken
constraints this way... thus different behavior.
2016-03-30 15:05:21 +02:00
fc5ffd9694
store constraints for prefractured mode now too in blend
...
this automatically creates constraints from scratch as fallback for older files
2016-03-30 10:24:08 +02:00
9c79a5151e
Fix T47758: rigidbody bug with constraint breaking and disable collisions.
...
This is a regression in Bullet, reverted the problematic change for now with
a custom patch (backported to Fracture Modifier)
2016-03-30 10:21:20 +02:00
dce55610df
allow multiple dynamic destruction with extra particles or verts
...
this should allow triggered dynamic destruction with different colliders at different times. Note: WIP and crashes often in relation with undo
2016-03-29 15:24:13 +02:00
536578a189
fix attempt for some dynamic fracture rotation glitches
2016-03-27 23:19:32 +02:00
738bcd8a0c
fix: crash when removing FM, ob->derivedFinal can become NULL in this case
2016-03-27 15:12:47 +02:00
3e2ed11690
keep objects completely intact with compounds and stability factor = 1
2016-03-27 15:11:46 +02:00
e1e6e2d04b
stability factor should now influence overall stability of object more directly.
...
This should allow to control breaking behavior of the compounds better.
As before the masses still have the biggest influence to the breaking behavior, followed by thresholds and
connection count per shard.
2016-03-26 18:50:39 +01:00
45dbc3d19c
attempt to make compounds a bit more predictable, they should work now when colliding with passive objects too
2016-03-26 16:07:04 +01:00
cfec6debb6
removed a double bad level call stub, found by jensverwiebe, thanks :)
2016-03-21 16:04:53 +01:00
3990ee1bb8
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.77-release' into fracture_modifier
...
Conflicts:
source/blender/windowmanager/intern/wm_operators.c
2016-03-21 11:39:38 +01:00
22a2853b5d
Blender 2.77: Point submodules to an updated hashes
2016-03-18 17:34:06 +05:00
870f911e36
Revert "Fix button display clamping values"
...
This reverts commit e4e21480d6
.
2016-03-18 16:45:58 +05:00
4522ee109b
Blender 2.77; We are now at release cycle
2016-03-18 16:43:43 +05:00
fc37440216
Sequencer: expose GL preview alpha in scene UI
...
While this isn't essential, accessing this setting required navigating to each scene and using render menu.
Expose in sequencer UI for more convenient access.
2016-03-18 15:44:39 +05:00
6f49d970e0
Fix T47818: GPencil Sculpt Brush settings update when adjusted using scrollwheel while sculpting
2016-03-18 15:44:25 +05:00
4e53ca9ed2
Fix T47760: Toggling GPencil's "Selection Mask" via Python does not update UI
...
Add rna updates to greasepencil sculpt properties
D1849 by @lichtwerk , reviewed by @aligorith
2016-03-18 15:44:25 +05:00
48ae702c3c
Fix missing 'anim_data' in RNA API of Freestyle's linestyle.
...
Reported by Manuel Rais on ML, thanks.
2016-03-18 15:44:25 +05:00
2b0f0ffe0a
Fix T47763: 2.77 RC2 (Fluid) Particle Baking slower compared to 2.67b.
...
Static schedule was responsible here...
Also, made a minor optimization in case adaptative (auto) subframes are enabled,
gives a few percent of speedup here.
2016-03-18 15:44:25 +05:00
1e5c7e7a0d
Fix T47807: Toggle header shortcut doesn't work
2016-03-18 15:44:25 +05:00
bbaffd7ede
Fix T47759: Mesh 'Select less', leaves isolated verts
...
Select less in mesh edit-mode would leave selected vertices/edges
in edge/face mode which don't support selecting these elements.
2016-03-18 15:44:24 +05:00
bcfa73dfd3
Fix T47784: BMesh.from_object broken keyword args
2016-03-18 15:44:24 +05:00
4bb12140e3
Fix T47772: Randomize stroke has direction bias
2016-03-18 15:44:24 +05:00
e100a8598f
Fix T47788: Symmetrize flips multi-res data
...
Symmetrize was unusable with multi-res data,
add an option for the bmesh operator not to flip the multi-res depth.
2016-03-18 15:44:24 +05:00
f0e52274ad
Correct UI active state w/ bevel-factor
...
D1838 by @JacquesLucke
2016-03-18 15:44:24 +05:00
e511c7a34e
Fix/workaround T47685: Drag keymap slider fails
...
This is a special case where the UI update function re-creases the keymap we're currently editing.
Making it so dragging values fails.
2016-03-18 15:44:24 +05:00
3d1f050608
Fix crash loading some library blend files
...
Blend files with screen but no scene would crash.
2016-03-18 15:44:23 +05:00
90758ed2e8
Fix T47827: Single Channel Preview Error
...
Fix by @sergey with own fix for big endian.
2016-03-18 15:44:23 +05:00
80b906cb31
Fix T47787: When performing operation 'Make single user' -> 'obj&data', object could be removed from group.
...
Similar cause as in T47482, we used to have poor handling of 'user_one' cases of ID usage,
leading to inconsistent behavior depending on order of operations e.g.
Here, was object used by a group but not linked in any scene - once linked in scene,
their usercount would be 2, leading to 'making single copy', when it's actually not needed.
We now have better control here, so let's use it!
Note that other ID 'make single user' code will likely need similar fix (Images, etc.).
Safe to be backported to 2.77.
2016-03-18 15:44:23 +05:00
8b49fa29ca
Fix T47785: Rendering Crash, Node Connector Crash, Changing Editors Crash
...
Regressions after 2.76, to be backported to 2.77.
2016-03-18 15:44:23 +05:00
6d4f51212b
Fix T47773: Particle System with Boids Crash.
...
Problem was, during initialization of boids particles in `dynamics_step()`,
psys of target objects was not obtained with generic `psys_get_target_system()`
as later in code, which could lead to some uninitialized `psys->tree` usage...
Think it's safe enough for 2.77, though not a regression.
2016-03-18 15:44:22 +05:00
ab44c20409
Fix bad UI range of convergence distance which was above the hard limit
...
That was rather confusing to slide the value.
Perhaps makesrna can check cases like this?
2016-03-18 15:44:22 +05:00
45b0e93b2e
Cycles: Do no limit viewport samples to USHRT_MAX when value is at 0.
...
We don't limit manually setting higher values, this was probably overlooked here.
Found by @Blendify in IRC.
2016-03-18 15:44:21 +05:00
34510e3cce
Fix crash adding EditNormals modifier to NURBS object (or other types but mesh).
...
Kinda stupid, but that eModifierTypeFlag_AcceptsCVs could really use a comment alongside
its definition!
Safe to be backported to 2.77.
2016-03-18 15:44:21 +05:00
de80ecc8fb
Fix T47753: World equirectangular regression
...
D1729 fixed 'View' projection but broke 'Equirectangular'.
This commit also changes equirectangular projection to match Cycles and the viewport.
2016-03-18 15:44:21 +05:00
fc2f0a1a25
Fix T47749: Crash subdividing wire edge w/ mdisps
2016-03-18 15:44:21 +05:00
d402611c1d
CMake: remove OSX version lookup table
...
This assumed the OSX SDK version matched the OSX version, which isn't always true.
Also problematic for maintenance and would make building older Blender versions on OSX fail.
Passing in pre-defined OSX_SYSTEM is also supported,
if you have multiple and want to select one.
2016-03-18 15:44:20 +05:00
6ebd48f353
Skip scopes update for render result during rendering
2016-03-18 15:44:20 +05:00
7268e6c58f
Fix T47681: Bump node doesn't work with SSS shader when using OSL
2016-03-18 15:44:20 +05:00
Julian Eisel
c20bcba363
Fix T47706: 'CTRL ALT Left Mouse' clicking on the dope sheet summary line crashes Blender
...
Simple NULL-check seems fine here, working as it should now. Most likely caused by rBc4dc14b079d81.
2016-03-18 15:44:20 +05:00
1e2c8ca6ea
Fix T47688: Regression in gl_load
...
Error caused by 771f73b6
2016-03-18 15:44:20 +05:00
88a3b68610
BMesh: avoid assert dissolving degenerate faces
...
For dissolving 2-sided faces, theres no need to check they are valid before removal.
2016-03-18 15:44:19 +05:00
1e1118e7e7
Blender 2.77: We are now RC2
2016-03-04 22:08:19 +05:00
1e7458258c
Blender 2.77: Point translations submodule to updated branch
2016-03-04 22:03:16 +05:00
3636693612
Fix typo in 'Vietnamese' language label (must have sneaked in while adding Basque one, grr).
2016-03-04 21:47:54 +05:00
7cd6a5c221
Fix T47683: broken BBox logic when drawing duplis.
...
Once a dupli had a valid bbox, that bbox would be used for all following objects
without bbox, instead of skipping clipping check.
Issue unveiled by rB3fa0a1a5bc0ff2, but not related at all (in fact, bug was present before that commit).
2016-03-04 21:12:00 +05:00
15ac4b4f9b
Fix uninitialized memory use lattice-boundbox
...
Many other places weren't clearing boundbox dirty flag after calculation.
2016-03-04 21:12:00 +05:00
ce4a8210b3
Curve/line width change broke outline drawing
...
Partially revert e29a5ba6
2016-03-04 21:11:59 +05:00
Julian Eisel
67d310459d
Fix T47674: "Change Data/Files" setting incorrect filter
...
Image filter was not set, but only if invoked from toolbar (image strip needs to be selected to see the button).
Caused by rB7fa72b8970, Wasn't aware there's another button for this for image strips.
2016-03-04 21:11:59 +05:00
b805b3735c
Render Save Buffers: Use proper memory buffer size for a display buffer
2016-03-04 21:11:59 +05:00
ff32f81fd2
UI: move checkbox for missing add-ons to LHS
2016-03-04 21:11:59 +05:00
a78d679ddd
Fix RNA property clamp assigning in Python
...
On first assignment the value was clamped, but successive assignments weren't.
2016-03-04 21:11:59 +05:00
5cbd14241f
Edit Mesh: Edge tag toggle when no active path is found
...
User request, this matches 2.6x behavior more closely.
2016-03-04 21:11:59 +05:00
c82e6fe80b
PyAPI: correct function name w/ arg parsing
2016-03-04 21:11:58 +05:00
50f188814f
Fix T47676: Broken default values for particle brush strength.
...
Current startup .blend has old (percent?) values for particle brush strength.
Since rBe4e21480d6331903c90ab073746484498441e1ac, UI controls do not clamp automatically values anymore,
which means when you first enable comb (or any other brush) you get a 50 strength, waaaayyyy to powerful.
This commit fixes this in `BLO_update_defaults_startup_blend`, note that it does not fix custom users'
startup files, nothing to do here...
2016-03-04 21:11:58 +05:00
b00822e42d
Fix T47644: crash (use-after-free) regression from rB7a74738914a66e.
...
Handling `me` data here is not good idea anyway, we override it completly with data
from `tmp` (crash came from freeing already existing bb from me, while pointer still existed in tmp).
(rediscovered it while working on T47676...).
To be backported to 2.77.
2016-03-04 21:11:58 +05:00
67b16c6170
Fix T47564: Unwrapping the same mesh results in different UVs.
...
Pointers of faces were passed as face keys during parametrizer's face creation. Since those
addresses were different for every run, the layout of the faces ended up being different
in the internal hash, leading to inconsistent order of their evaluation during LSCM solving,
and slightly different UV maps.
Solved by simply using faces' indices as key instead, which ensures we always get same results
with exact same input data now.
Many thanks to Roman Nagornov (RomanN) for raising the issue, investigating it and finding
the solution! And thanks to Brecht for quick review too.
2016-03-04 21:11:58 +05:00
3382ba0238
Cycles: Fix wrong default value for volume samples
2016-03-04 21:11:58 +05:00
d1efd44c1d
Fix assert in UI code
...
Dont attempt to clip empty string
2016-03-04 21:11:57 +05:00
198700a36d
Fix T47642: Crash baking w/ cycles
2016-03-04 21:11:57 +05:00
322fa27829
Fix T47635: Texture paint performance regression
...
Flipped bindcode check in D1414 caused projection paint to always do full updates.
2016-03-04 21:11:57 +05:00
562a488fb0
Add Basque (Euskara) new language.
...
Nothing critical, but would be nice to backport this to 2.77.
2016-03-04 21:11:57 +05:00
0c32f755a6
Fix T47643: Blender crash. Linked speaker issue.
...
Speaker's localization func would not make direct-linked its used sound datablock...
2016-03-04 21:11:57 +05:00
aa177d48c7
Fix T47638: Bad auto-smooth value for new meshes
...
Code was using degrees as radians.
Still unclear why default cube will have 180 degrees angle, but new meshes 30,
but that's kinda separate topic which is to be addressed separately.
This is a subject for final 2.77 release.
2016-03-04 21:11:57 +05:00
6a97b9c4a2
Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled.
...
See rB935e241fa6ea095493 for details of the issue, but first fix caused regression T47632.
So for now handling the issue in a localized way, this is not a real solution (since this could happen
in other cases), but will do for 2.77.
This commit is to be backported to 2.77.
2016-03-04 21:11:57 +05:00
01485b389a
Fix T47632: Revert "Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled."
...
This reverts commit 935e241fa6
.
Issue will be fixed in a more localized way for now (not that nice, since this use-after-free can possibly happen
in other places too, but only safe solution for 2.77).
This commit is to be backported in 2.77.
2016-03-04 21:11:57 +05:00
91457def83
Fix T47604: Sculpt + Modifier undo gives invalid normals
2016-03-04 21:11:56 +05:00
28e4f8eb5c
Fix T47615: crash trying to use point density with lamp object.
2016-03-04 21:11:56 +05:00
550215a65e
Cycles: Fix compilation error of certain OpenCL split kernels
2016-03-04 21:11:56 +05:00
77f96266e8
Fix T47608: Cycles cage baking crash after recent uv derivative fixes.
2016-03-04 21:11:56 +05:00
42fd804cca
Fix T47605: Elsyiun theme info text hard to read
2016-03-04 21:11:56 +05:00
2d5343cd92
Fix T47582: Curve handle thickness regression
2016-03-04 21:11:56 +05:00
86bb5f70d6
Fix T47586: Nurbs handle thickness regression
2016-03-04 21:11:56 +05:00
9fcc849aa3
Fix T47583: Mesh wire edge thickness regression
2016-03-04 21:11:55 +05:00
9867042ab0
Fix T47592: Wrong line width w/ custom-bones
2016-03-04 21:11:55 +05:00
2c3c8fbaed
Docs: early exist build process on error
...
Don't attempt to build docs when generation fails.
2016-03-04 21:11:55 +05:00
02b0f51164
Docs: Add missing context members
2016-03-04 21:11:55 +05:00
61e848280e
Fix T47596: Bone motion path - confusing UI in 3DView tools.
...
Now using same UI as in object/armature properties, also save one line in 3DView panesl. ;)
Nothing crucial there, but nice & safe to backport to 2.77 imho.
2016-03-04 21:11:55 +05:00
e956ebd0f9
Fix T47593: 'Move to layer' will be crash in blender 2.77rc1.
...
To be backported to 2.77.
2016-03-04 21:11:54 +05:00
43429578d3
fix, should need to fracture only once now in case you enable split shards to islands with constraints or clusters on
2016-03-01 20:36:36 +01:00
9c33f3db3f
partial fix for suddenly missing self-collision of shards of the same object, this happened even after converting to regular rigidbodies when disable collisions was active ! (so this is now off by default)
2016-03-01 18:27:42 +01:00
66ffb880bc
fix for loading inner vertex groups and set min weight for passive vertexgroups to 0.01, just keeping it > 0 did not yield correct results when passive vertexgroups were used
2016-02-28 10:24:37 +01:00
1b85ceabc5
fix for loading files, need to skip "empty" shards which dont have any mesh info because they didnt intersect with the original geometry, before this each meshisland stored a temp shard, now we lookup shards out of the shard map instead, but this could point to such empty shards, leading to incorrectly loaded files.
2016-02-27 14:06:33 +01:00
b594b25dad
Fix: "Twist" GP Sculpt brush in 2D Editors was unusable... now mostly usable, if still slightly offset
2016-02-26 13:32:47 +01:00
9c474b187a
Fix: "Twist" GP Sculpt brush didn't work well in 3D View
2016-02-26 13:32:44 +01:00
4df911aa58
2.77 splash
...
by Pokedstudio
2016-02-26 12:53:40 +01:00
00ca17acaa
Blender 2.77 release: Point submodules to a release branches
2016-02-26 12:12:11 +01:00
f0f38731db
fix for wrong transformation of shards after loading (and fix for potential crashers while loading)
2016-02-21 19:53:04 +01:00
3db5b76201
compile fix after merge
2016-02-21 13:27:46 +01:00
1c09344dba
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
CMakeLists.txt
SConstruct
build_files/build_environment/install_deps.sh
build_files/scons/tools/Blender.py
build_files/scons/tools/btools.py
extern/CMakeLists.txt
extern/SConscript
extern/bullet2/CMakeLists.txt
intern/cycles/blender/blender_camera.cpp
intern/cycles/blender/blender_texture.cpp
intern/cycles/kernel/geom/geom_triangle_intersect.h
intern/cycles/kernel/kernel_compat_cpu.h
intern/cycles/kernel/svm/svm_voxel.h
intern/cycles/util/util_path.cpp
intern/ghost/intern/GHOST_ContextGLX.cpp
intern/iksolver/intern/IK_Solver.cpp
release/datafiles/locale
release/scripts/addons
release/scripts/startup/bl_ui/space_userpref.py
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/BKE_bvhutils.h
source/blender/blenkernel/SConscript
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/armature.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/editderivedmesh.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/mesh_remap.c
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenlib/intern/string.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_handlers.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/editors/mesh/editmesh_select.c
source/blender/editors/object/object_bake_api.c
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_outliner/outliner_intern.h
source/blender/editors/space_outliner/outliner_tools.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_view3d/drawmesh.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_input.c
source/blender/editors/transform/transform_snap.c
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/SConscript
source/blender/makesrna/intern/SConscript
source/blender/makesrna/intern/rna_modifier.c
source/blender/makesrna/intern/rna_nodetree.c
source/blender/makesrna/intern/rna_rigidbody.c
source/blender/modifiers/SConscript
source/blender/python/mathutils/mathutils_geometry.c
source/blender/render/extern/include/RE_render_ext.h
source/blender/render/intern/source/bake_api.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/pointdensity.c
source/blender/render/intern/source/renderdatabase.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_files.c
source/blenderplayer/bad_level_call_stubs/stubs.c
source/gameengine/Ketsji/BL_Action.cpp
2016-02-21 13:27:17 +01:00
eca5449a29
change: let fluid move down across other modifiers in case it will be added after fracture which has a couple of other modifiers above it (exception for fluid only, since it can handle shards)
2016-02-11 11:55:30 +01:00
1051f71291
fix for material loading in FM external mode and generally decreased file loading times, especially noticeable with large FM objects, by using sorted fd->datamap in readfile.c (avoids linear search)
2016-02-09 17:45:34 +01:00
ca21fc8b55
fix, forgot to activate plastic connection handler in external mode
2016-02-08 21:49:40 +01:00
f66e70a855
fix for external mode material collection function
2016-02-08 17:24:51 +01:00
00ccb99a67
fix for name and indexbased meshisland and meshconstraint lookup via python inside the FM
2016-02-05 12:29:23 +01:00
9c744358a5
fix: there was a speed regression when building many constraints during fracture or after loading
2016-02-04 23:14:10 +01:00
80def34da1
some more mutex locking for dynamic fracture, there still were crashes when interactively moving dynamic objects during running sim
2016-02-04 20:19:57 +01:00
25057ba379
added threading lock to modifier sync during rigidbody object sync, helps against crashes in dynamic mode
2016-02-04 19:53:45 +01:00
2b0a6aa5bc
improved output of constraint impulse visualization a bit, included name, impulse and threshold as well as attempted to offset strings at same position
2016-02-03 19:37:54 +01:00
03db2ca8e7
windows compile fix
2016-02-03 16:14:28 +01:00
5a834c1608
added constraint impulse visualization (very basic only) and reworked the mesh constraint name system
2016-02-03 14:46:31 +01:00
55b2d46f15
compile fix for windows and mac
2016-02-02 15:47:06 +01:00
b1e4964ede
added basic physics visualization for viewport rigidbodies like in game engine (its optional and can be turned off)
2016-02-02 14:01:46 +01:00
9e9bbed144
ignore individual mesh island transforms in rigidbody system again and just re-apply them when converting back to objects, it just caused trouble and brought not the expected result
2016-02-01 14:02:30 +01:00
509bf61c21
fixes for: did assume autohide material was always at number 1, did change to find inner material number, own verts transformation bug, shards to islands delay bug (needed to click twice before), and some crashers with dynamic and prefractured as well as reduced a memoryleak in prefracture mode
2016-01-31 22:45:30 +01:00
87f895311f
some more effort to make FM simulation results looking closer to BCB simulation results
2016-01-31 01:59:35 +01:00
12f7fd5a08
attempt to reduce a memoryleak
2016-01-30 16:42:34 +01:00
03a4109930
exposed bullet tick callback to bpy.app.handlers, also wrapped the passed timestep into the rigidbody world, so it can be accessed too
2016-01-30 16:03:26 +01:00
b85da312f0
fixes for dynamic and external mode, in external mode each simulation run should be consistent with the prior ones now
2016-01-30 15:57:56 +01:00
819bc74e22
fix, small typo in appliedImpulse soft limit (read only)
2016-01-29 11:11:37 +01:00
c073d7cf60
added appliedImpulse() to regular constraints too
2016-01-28 23:30:39 +01:00
0c4939c013
added a RNA function to read the appliedImpulse from each constraints live, during simulation (slow when done from a python frame handler over all constraints)
2016-01-28 23:04:12 +01:00
39e00e5959
fix: dynamic mode didnt work at all anymore and has still some issues like flickering after baking and a crasher on exiting blender, also testwise enabled autoexecute on prefracture during sim
2016-01-28 21:01:14 +01:00
0ab52e7f51
fix: added extra update call on hook object in custom modifier evaluation
2016-01-27 23:46:38 +01:00
84696d3c75
fix: forgot to accumulate differences of multiple hook modifier changes
2016-01-27 21:58:08 +01:00
d5d33dbd40
fix: fake parenting in testfile didnt work anymore after fake hook was added to code, now both should work depending on whether the kinematic flag is set (=parenting) or not (=hook, if vertexgroup and hookmodifiers are used)
2016-01-27 21:19:05 +01:00
45435120f3
fix for silly brace mistake, which led to crash with fracturing a default cube
2016-01-27 20:08:21 +01:00
bcc260c778
improved the fake hook system, should behave now exactly as a regular hook and added some FM code comments to plan further work.
2016-01-27 18:23:15 +01:00
2cbd8c9d44
added handling of vertexgroups and a fake hook system inside the FM, so passive shards can be influenced by hook modifiers via vertexgroups.
2016-01-26 21:34:05 +01:00
5ad7a248a3
fixed two crashers: 1) when object had no material, that assignment failed. 2) constraints with empty meshislands crashed too
2016-01-26 01:03:12 +01:00
0adaddd4c4
fix for passive parenting hack, it was not taken into account after transforming the object interactively
2016-01-25 17:58:27 +01:00
1dd3595443
added a fake parenting for passive shards, those are simply moved with the object itself, so you can parent the entire object and have exact motion data in the passive shards
2016-01-25 17:47:18 +01:00
e29680e0e2
forgot to take some rigidbody settings into account during object conversion
2016-01-24 19:11:03 +01:00
6efacde5c0
fix for possible rotation glitch when converting back to objects
2016-01-24 17:46:35 +01:00
7023be40be
fix for Fracture Modifier to object converter (external mode), not all settings were taken into account, and object disappeared when not being on startframe, but as converting mid-sim yields unexpected results, still limiting conversion to startframe, added a notification for this
2016-01-24 17:18:28 +01:00
d50a3d7097
added dynamic threshold adaption in case of changing timesteps for plastic constraints, also enabling plastic constraints in case they enter plastic state now
2016-01-24 15:51:13 +01:00
62ac065a4c
fix for windows only: avoiding changing the global locale avoids slowdown in windows string operations
2016-01-24 13:02:34 +01:00
e476e50b61
fix: spring constraints were not created properly while setting up the simulation
2016-01-24 00:57:17 +01:00
90b76659ca
some more fixes to have proper plastic constraint support
2016-01-23 21:40:40 +01:00
0384b49e14
fix for material assignment to meshislands, dont create unnecessary material slots any more
2016-01-22 10:33:20 +01:00
50e308c19c
taking now all constraint properties into account when converting back to objects
2016-01-22 01:56:31 +01:00
7b4a37b1b0
partial fix, take proper constraint locations and rotations into account when converting back to objects, but todo, take own object transform into account too
2016-01-22 00:36:14 +01:00
8e79bae2eb
added names for meshislands, can now convert back to named objects, added load / save support (was missing)
2016-01-22 00:00:29 +01:00
3d36d357c2
fixes for the monitoring logic of plastic constraints, again
2016-01-21 19:42:27 +01:00
e2670b3814
fixes for correct rotation calculation in prefractured and external mode
2016-01-21 12:02:00 +01:00
7c3c6f8310
used more exact angle calculation method for external mode, different formulae for tolerances, and some cleanup of obsolete stuff.
2016-01-21 02:12:48 +01:00
7761311305
added material handling (so meshislands get correct materials from original objects) and added plastic tolerance values, which are taken into account with special simulation mode only.
2016-01-20 23:30:55 +01:00
340798fe56
reduced a performance bottleneck when adding many constraints in a loop, do not trigger modifier updates or set validate flags or even call bullet functions... but todo is to keep a useful update mechanism
2016-01-20 18:42:49 +01:00
b8c63aead5
avoid resetting cache (and iterating possibly through the rigidbody group) when adding mesh constraints
2016-01-20 00:40:22 +01:00
3553669d12
attempt to make mesh island packing faster when being called in a loop, create the dm only once after packing
2016-01-20 00:23:33 +01:00
35701ed26e
crash fix in FM refresh operator (null pointer access)
2016-01-19 23:23:43 +01:00
982f94f269
rigidbody type on meshisland should be taken into account now properly and be settable, also adding new constraints should happen faster now (when called in a loop)
2016-01-19 21:20:28 +01:00
eb8af755dd
further attempt to fix "plastic constraint" logic (external fracturing mode only)
2016-01-19 19:02:55 +01:00
dede676e90
implemented some special constraint breaking method further (plastic constraint breaking), for external fracturing mode
2016-01-18 21:59:07 +01:00
1ae8bcc8e6
exposed per-constraint breaking angle and distance to python (for external mode only, for now)
2016-01-18 19:55:10 +01:00
b800df49d7
fixed constraint restore with external fracture mode (using participants instead of jumping around in list, which messes up the iteration loop)
2016-01-18 18:03:20 +01:00
66242f5e76
constraints transformation fix, transformations are updated on validation now
2016-01-18 01:33:45 +01:00
df389e31d6
first successful simulation attempt with a bigger test data set, todo... set constraints relative to object , multiply with obmat during evaluation
2016-01-18 00:51:44 +01:00
8d58ffe0be
extended FM python API: constraints have now settable locations and rotations, additionally there is an highly experimental constraint breaking mode (for external fracture mode ONLY)
2016-01-17 19:33:06 +01:00
f7fa6906e6
initial, basic python API for Fracture Modifier contents: mesh_islands and mesh_constraints are createable, removable externally prior to running the simulation (in special "External" fracturing mode) so you can pack objects into the modifier (as mesh islands) and set constraints to connect them. This can happen in immediate update mode or updating is done via refresh operator. You can also have read access for island data after simulation, to dump the results.
2016-01-17 16:14:48 +01:00
b1c3782c46
added activation by force, if force exceeds an adjustable threshold, kinematic rigidbodies get activated / triggered by a force field
2016-01-14 13:04:10 +01:00
84d8b15a18
set shards to passive if shard weight (average vertex weight) is > 0.0f instead of 0.5f, this allows to keep shards passive in case they dont get enough weightpaint (in case they are inside, and interpolation of weights is not enough)
2016-01-06 18:27:46 +01:00
d34550c126
fixes: lower stability factor now lets the object break earlier ( effect was inverted) and added uv_layer to fracture presets (was missing)
2016-01-05 15:55:20 +01:00
093a5501bf
taking stability factor now into account at dummy constraint calculation for compounds, it influences search radius and limit now, too
2016-01-04 21:08:49 +01:00
9ad72754c6
attempt to get more control over compound destruction behavior during simulation, with stability factor; recursive breaking of neighborhood happens if one connection breaks
2016-01-04 19:46:13 +01:00
f1981b3cfc
partial fix for displacement / autohide flicker problem, happens now only with automerge (occasionally) and with automerge + fix normals (regularly), but for displacement and glass you mostly need only autohide; automerge and fix normals are for smooth objects where cracks should be nearly invisible (after fracturing)
2015-12-30 20:47:25 +01:00
24ff36d84b
added an autohide filter group, its helpers can be used to animate revelation of cracks which are hidden otherwise. This is basic revelation functionality via object locations and sizes only.
2015-12-28 15:04:07 +01:00
d8b561de76
fix: make sure a rigidbody exists on each mesh island after loading when trying to access it
2015-11-29 19:59:47 +01:00
5d554ca7ea
enabled trigger in dynamic fracture again, fix for cache stopping problem as well
2015-11-10 09:54:55 +01:00
2ea86a8817
fix for dynamic fracture rotation glitch (was wrong calculation)
2015-11-09 10:59:46 +01:00
5f796ef1ef
attempt to fix customdata related memoryleak... it has been reduced, but isnt completely gone yet
2015-11-06 12:55:58 +01:00
e237ef3a40
minor fix for removed fracture setting in preset
2015-11-04 18:07:30 +01:00
e141527ddb
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.76-release' into fracture_modifier
...
Conflicts:
release/scripts/addons
source/blender/windowmanager/intern/wm_operators.c
2015-11-04 18:01:12 +01:00
0076ba4833
deactivated the unfinished multiple fracture settings per object for now, didnt work properly
2015-11-04 15:21:27 +01:00
ca18f5ddd4
added inner uv map setting, which will contain only inner face's UVs, useful for texture based inner smoke in conjunction with fracture modifier
2015-11-04 15:05:19 +01:00
f337feaf5a
BLender 2.76: We go 'b' series now
2015-11-03 15:56:35 +05:00
936a685ea8
Don't expand toggle brush on linking
...
Toggle brush is more a runtime only feature, not really supposed to be used
as real ID linking as it's done for modifiers i.e.
2015-11-03 15:49:54 +05:00
b8438a870d
Fix T46626: Crash generating previews
...
Brush.toggle_brush was allowed to be an invalid pointer,
it worked for the one operator that used it - but in general bad practice,
requiring a lookup on every access.
Ensure the pointer is kept valid now.
2015-11-03 15:49:38 +05:00
e5ccc1e19d
Fix/workaround T46622: crash w/ metas & particles
...
Metas are scanning all scenes duplis,
which can go into particle systems without an initialized derived-mesh.
For now just do NULL check, its not correct but real fix is not fitting well with current design.
2015-11-03 15:49:18 +05:00
3c54514354
dynamic fracture should be bake and saveable now, but still has rotation glitches and glitches with change in mesh island sequence.
2015-11-02 14:12:15 +01:00
d7daecccbd
Fix T46651: Select linked crash w/ wire seam edges
2015-10-31 19:26:47 +11:00
b611bdb629
Revert "Fix T46494: Can't de-select a face w/ mixed modes"
...
This reverts commit 381501ab45
.
2015-10-31 19:26:11 +11:00
c9cd41547c
added basic support to clean up keyframes directly after converting to keyframed objects, but you need cache to bake so the operator can run again (and it will refracture automatically, too)
2015-10-30 19:12:17 +01:00
c794d87f12
optimization: when converting to keyframed objects, do not key passive shards any more (as they dont move anyway)
2015-10-30 11:46:51 +01:00
12e4da6c1a
Fix T46507: Cycles baking re-orders face
...
Regression in 2.76, order of tessellated vertices needs to follow MFace tessellation.
2015-10-30 13:43:59 +05:00
de96d1acd1
Blender 2.76a: Fix CUDA compilation on 32bit platform
2015-10-29 20:11:22 +05:00
379a754b83
changed volume calculation method for convex hull and triangle meshes, mass fractions should be calculated more accurately now, but note, might change behavior of older simulations !!!
2015-10-29 15:58:27 +01:00
b5e4cc820b
BLender 2.76a: Update addons submodule
2015-10-29 17:26:14 +05:00
bc9f118169
Set blender version to '2.76a'
2015-10-29 22:08:52 +11:00
74055fb813
Cleanup: quiet warning
...
Not cherry picked, just included for release build.
2015-10-29 21:32:47 +11:00
Dalai Felinto
b1eff080bd
Temporary "fix" for crash when saving OpenEXR Multi-View from Image Editor
2015-10-29 21:10:17 +11:00
Dalai Felinto
c2337748e5
Fix T46617 File Output Node seems to save only black images into OpenEXR image data
...
If the node output had only one layer, it would be detected as singlelayer, and it would miss the blender exr header string
2015-10-29 21:10:17 +11:00
f30a270a70
Freestyle: Fix for 'Distance from Object' modifiers without a target object.
...
'Distance from Object' color/alpha/thickness modifiers without a target
object were raising a run-time exception although it is not considered an
error condition.
2015-10-29 21:10:17 +11:00
424ea476b1
Fix T44231: Freestyle causes crash on render.
...
The reported crash was confirmed as a segmentation fault in std::sort().
The cause of the crash was traced down to a binary comparison function
that was not satisfying the so-called strict weak ordering requirements of
the C++ standard sorting function. Specifically, the comparison operator
has to return false when two objects are equivalent (i.e., comp(a, a) must
be false), but that requirement was not met.
Since the binary comparison operator in question could be a user-defined
Python function, here a safety measure is implemented in the C++ layer to
make sure the aforementioned requirement is always satisfied.
2015-10-29 21:10:17 +11:00
1823e56625
Follow up to previous commit, proper fix for T46284, incorrect Texture
...
shading in Texture paint mode and cycles
2015-10-29 21:10:17 +11:00
25beefa8dd
Revert "Fix T46284: Texture paint, wrong shading mode"
...
Should fix T46616 but will reintroduce T46284.
The second, original bug needs different handling
This reverts commit 904db487a7
.
2015-10-29 21:10:17 +11:00
887e5cb7b0
Fix T46605: Compositing causes access violation when rendering from command line
...
Seems was caused by the race condition in the stats printing, should be all fine now.
Nice for 'a' release.
2015-10-29 21:10:16 +11:00
4eb34dbc88
OpenSubdiv: Fix wrong handling of vertex parent
...
Vertex parent was not registered as CPU data requirement.
Should be in the 'a' release.
2015-10-29 21:10:16 +11:00
8026a1d543
Fix T46606: Trackball Rotate jumps releasing shift
2015-10-29 21:10:16 +11:00
13c473f707
Fix broken comment about our WM progress report for python (its not a progress bar at all).
2015-10-29 21:10:16 +11:00
c2e7f6d5b4
Fix T46604: Crash in ChainPredicateIterator instantiated without predicates.
...
Also fixed a potential crash in the copy constructor case.
2015-10-29 21:10:16 +11:00
349abb5f58
Freestyle: minor speed-up by omitting the calculation of the smallest edge size.
...
BlenderFileLoader tries to find the smallest edge size but the computed value is not used.
2015-10-29 21:10:16 +11:00
299f647004
Fix: Prevent warnings from popping up when trying to edit driver expressions from buttons
...
Previously, a warning was added to provide feedback to users trying to change the values
of driven properties why their edits would not have any effect on the propeerty. However,
it turned out that instead of only showing up when the user tried to increment/decrement/slide
the property's value, it was also firing everytime they were trying to edit the expression.
That however is not what we want at all!
This fix assumes that BUTTON_STATE_TEXT_EDITING is used for expression editing, and
BUTTON_STATE_NUM_EDITING (or everything else) refers to the user trying to adjust the
value normally.
2015-10-29 21:10:16 +11:00
1ce73aa72b
Fix T46599: Copy Rotation behaves erratically when Use Y is disabled
...
When the "Use Y" option in the Copy Rotation constraint is disabled, the constraint
behaves eratically when rotating all the target on all axes at the same time.
This is partially to be expected due to the way that euler rotations work
(i.e. the rotation orders stuff - you should use a rotation order based on most to
least important/significant rotations). Hence, by locking Y, you're causing accuracy
problems for Z.
What was not expected though was that changing the rotation orders on the objects
involved (for the record, it's the constraint owner that counts) did nothing.
It turns out that for objects, the rotation order settings were getting ignored!
This commit fixes this problem, and this particular case can be resolved by using
"XZY".
Notes:
* Since all object constraints were previously working on the assumption that they
used XYZ (default) order, it is possible that this change may have the unintended
consequence of changing the behaviour of some rigs which relied on the buggy
behaviour. Hopefully this will be a rare occurrence.
2015-10-29 21:10:15 +11:00
4081dab9d5
Fix: Missing update after scrubbing time in Graph Editor
...
Sometimes the timeline header didn't update after time-scrubbing in the graph
editor ends, leaving the "Pause" button visible until the next refresh of the
timeline (e.g. on mouse over)
2015-10-29 21:10:15 +11:00
ebc899790b
Fix: X-axis values in Graph Editor should not be displayed as timecodes in "Drivers" mode
2015-10-29 21:10:15 +11:00
95cc31fdcd
Fix error in bone UI
2015-10-29 21:10:15 +11:00
50ecd510bb
Fix invalid exceptions w/ preview API
...
D1575 by @januz
2015-10-29 21:10:15 +11:00
ca51398fd8
Fix T46538: Mark and Clear Seam in UV Editor, assigning Hotkeys.
...
UV Editor keymap is not bound to a given editor (spacetype)...
2015-10-29 21:10:15 +11:00
ff5a34e370
Fix related to T46538: do not popup choice menu of mark/clear seam UV editor op invoke when prop is already set!
2015-10-29 21:10:15 +11:00
4aac73a86f
Correct own error w/ snap-scale T46503
...
Don't use nan for comparisons.
2015-10-29 21:10:15 +11:00
d1c6364099
Fix ffmpeg memory leaks
...
- audio_stream wasn't freed.
- audio/video stream + context weren't freed on failure.
2015-10-29 21:10:15 +11:00
c01e9cefe1
Fix ffmpeg saving long paths
...
Was checking wrong length on string copy.
2015-10-29 21:10:14 +11:00
e54f38ebf0
Fix for error w/ RenderView in ImageView list
2015-10-29 21:10:14 +11:00
15364094d0
Fix snap-scale w/ axis constraint
...
Related to T46503,
fix only worked when the snap target was axis-aligned.
2015-10-29 21:10:14 +11:00
62a973db31
BGE: Fix T46556: check on null sound datablock pointer.
2015-10-29 21:10:14 +11:00
3f067c61a0
Cycles: Watertight fix for SSS intersection
...
Same as previous commit, just was missing in there.
2015-10-29 21:10:14 +11:00
673bc6d65a
Cycles: Fix for watertight intersection
...
It was possible to miss some intersection caused by wrong barycentric
coordinates sign.
Cases when one of the coordinate is zero and other are negative was not
handled correct.
2015-10-29 21:10:14 +11:00
ce268f6005
Fix T46521: Python: bvh.ray_cast doesn't find a plane facing in the other direction under certain circumstances
...
The issue was caused by wrong sign check. It originally came from more optimized
Cycles code where because of other reasons it wasn't visible yet. But in fact it
should be solved there as well.
2015-10-29 21:10:14 +11:00
54f1e682c6
Fix T46569: Crash w/ mask & locked-track enabled
2015-10-29 21:10:14 +11:00
4d581c01cc
Fix T46561: Crash in outliner delete hierarchy
...
When children & parents were selected in the outliner,
it attempted to free the the object twice.
2015-10-29 21:10:14 +11:00
e1f5433f1d
Fix T46565: Movie render crash w/o permissions
...
Rendering to a path that didn't have write permissions would crash.
Also fix error where `G.is_rendering` was left set when rendering failed.
2015-10-29 21:10:13 +11:00
7d070f97ad
Fix T46524: Use Alpha (Straight/Premultiply) option missing in 2.76, part II.
...
Different issue actually, here RAWTGA was simply forgotten in the alpha-capable formats...
2015-10-29 21:10:13 +11:00
e8b3ba2983
BGE: Fix physics meshes conversion with modifiers.
...
Previously meshes with modifiers were considerate as empty (no polys).
2015-10-29 21:10:13 +11:00
be4ee42e1c
Fix T46544: Can't unpack generated image
2015-10-29 21:10:13 +11:00
bedc58ac4e
BGE: Fix T46381 : last action frame not updated.
...
It fix T46381. Normally BL_Action::Update (manage action time, end, loop…) should be called the same number of times as BL_Action::UpdateIPO (update action position, scale ect… in the game object).
But the bug report shows that UpdateIPO is called one less time than Update. To fix it i revert the commit 362b25b382
and implement a mutex in BL_Action::Update.
Example file : {F245823}
Reviewers: lordloki, kupoman, campbellbarton, youle, moguri, sybren
Reviewed By: youle, moguri, sybren
Maniphest Tasks: T39928, T46381
Differential Revision: https://developer.blender.org/D1562
2015-10-29 21:10:13 +11:00
349609c743
Fix T46529: Unwrap UV w/ use-subsurf fails
...
Regression since moving to looptri.
2015-10-29 21:10:13 +11:00
60ad008162
Fix T46531: Cannot use % in filenames.
...
Same case as with space char really, one should not use those special chars in
filenames, but they are globally supported by all current FS/OS, so no real reason
to enforce that behvior on users here.
To be backported to 'a' release.
2015-10-29 21:10:13 +11:00
34def18764
Fix T46520: mathutils.bvhtree crashes with distance input.
...
Should be backported to 'a' release.
2015-10-29 21:10:13 +11:00
0afdd1139b
Fix T46524: Use Alpha (Straight/Premultiply) option missing in 2.76 for DDS files.
...
All optional image format are not #define'd in submodules like DDS read/write code.
This means values of `eImbTypes` would not always be the same in all contexts, yuck!
This is a regression and should be backported to 'a' release.
2015-10-29 21:10:12 +11:00
59c1a96975
Fix T46429: Movie clip is deformed by resolution multiplier when offset is added in sequence editor.
2015-10-29 21:10:12 +11:00
f81ecf117f
Fix broken CD_NORMAL interpolation callback (would generate non-unit vectors).
...
Even if the weights are normalized, the weighted sum of normalized vectors
usually does **not** give a normalized vector (unless all source vectors
are aligned).
This probably was not a big issue in most cases, since we usually interpolate
similar vectors here - but still!
2015-10-29 21:10:12 +11:00
cde725e26f
Fix T46508: data_transfer of normals fails in case objects are transformed.
...
The final stage of the process (copying/interpolating new dst cddata from src cddata)
was simply broken in normal case, where we need to convert from source to destination
object space.
This patch is a bit verbose, but I cannot see how to avoid it really.
To think this code is in master since over 6 months and it only gets reported now... :/
2015-10-29 21:10:12 +11:00
42b6d843bd
Mesh remapping: fix loop 'best matching normals' not using transform space.
...
Also, cleanup, reduce declarations of tmp_co/_no...
2015-10-29 21:10:12 +11:00
6c1b73c0da
error in last commit
2015-10-29 21:10:07 +11:00
ff3913d1ec
Fix for missing id_lib_extern, assigning ID's
2015-10-29 21:08:50 +11:00
dfba50bf6a
Fix T46502: Linked dupli-group lost on reload
2015-10-29 21:06:42 +11:00
9a5d74a998
Fix T46503: Snap scale fails using corner pivot
2015-10-29 21:06:41 +11:00
40e69a6e95
Fix crash pressing +/- in file-selector
...
Filenames over 128 chars would crash.
Move BLI_newname into file_ops,
this was only used in one place and isn't all that re-usable.
Also remove special behavior for 4 digits.
2015-10-29 21:06:41 +11:00
ab6c7c5888
Fix crash w/ PlayAnim & long filenames
...
Paths >128 chars could crash.
Replace BLI_newname with direct BLI_stringenc/dec use which makes more sense in this case.
2015-10-29 21:06:41 +11:00
040c9ae55c
Fix T46493: Wrong camera zoom blur with non-unit pixel aspect
2015-10-29 21:06:41 +11:00
381501ab45
Fix T46494: Can't de-select a face w/ mixed modes
2015-10-29 21:06:41 +11:00
7d25105290
Fix memory leaks in PlayAnim
...
Was never freeing filenames or pictures.
2015-10-29 21:06:41 +11:00
2f1bab75d7
Fix T46465: Lag scrubbing w/ PlayAnim
2015-10-29 21:06:41 +11:00
c1990affac
PlayAnim: avoid list count setting frame from mouse
2015-10-29 21:06:41 +11:00
5acb0ba569
Fix T45900: Allow again white spaces in file names.
...
Should probably be added to 'a' release, should we do one...
2015-10-29 21:06:41 +11:00
ae1335f7cf
Fix T46483: vertex/edge slide with correct UVs sometimes pinning UVs.
2015-10-29 21:06:40 +11:00
e5ee9d1eff
Fix related to T46223: memory leak when loading multilayer multiview images.
...
Differential Revision: https://developer.blender.org/D1549
2015-10-29 21:06:40 +11:00
061f20112e
Fix T46223: multiview image sequences crashing.
...
Differential Revision: https://developer.blender.org/D1549
2015-10-29 21:06:40 +11:00
7d31777d71
BGE: Fix animations update when scene is suspended.
2015-10-29 21:06:40 +11:00
50dd619e88
Fix T46487: OpenSubdiv objects are invisible in Blender Internal "Rendered" viewport mode
2015-10-29 21:06:40 +11:00
228625b9fb
Fix T46453: JPEG quality not stored in file
...
This is a feature unique to jpeg that would store the quality it was saved.
- Use struct instead of bit-shifting.
- No longer store the 'flag'.
2015-10-29 21:06:40 +11:00
57d919c1ec
Cleanup: remove historic, blender-only jpeg io
2015-10-29 21:06:40 +11:00
a5a58ec140
Fix T46284: Texture paint, wrong shading mode
...
Project-paint now supports painting to cycles materials.
2015-10-29 21:06:40 +11:00
1632a5503b
Missed this in previous commit...
2015-10-29 21:06:39 +11:00
51a13869bc
Fix T46467: Clean Keyframes removes the channels.
2015-10-29 21:06:39 +11:00
f4c22ac4b6
Fix T46002: mathutils.geometry.intersect_line_line_2d doesn't operate on lines, but on line segments.
...
Ugly issue really, but at least doc now matches behavior of the function. :|
2015-10-29 21:06:39 +11:00
2e4d580f9d
Fix T46450: Seams from islands, wont show 'Sharp'
2015-10-29 21:06:39 +11:00
8af2029ca5
Fix T46458: BGE Crash on load
...
regression from 96dd213e7
2015-10-29 21:06:39 +11:00
5ea4f5b4a3
Fix T46447: fix build on non-x86 platforms.
2015-10-29 21:06:39 +11:00
ff01b24ecd
Fix T46446: texture nodes image node not working with image sequences.
2015-10-29 21:06:39 +11:00
cdc8f4d65a
Fix T46434: Shear w/ local-center & editmode fails
2015-10-29 21:06:39 +11:00
ae4b02c6bb
Fix T46444: Crash importing DAE w/ empty armature
2015-10-29 21:06:39 +11:00
a5938e01e5
Cycles: Increase number of textures allowed for OpenCL render
...
Currently OpenCL devices are packing images into a single texture,
which means technically number of textures is not limited here.
Now OpenCL will use same number of textures as CPU. If we want
to bump number of textures further, this values are to be modified
in sync.
NOTE OpenCL still does not support float textures.
Original patch from a guy called bliblubli in the tracker with
some own modifications.
Reviewers: brecht, dingto, sergey
Differential Revision: https://developer.blender.org/D1530
2015-10-29 21:06:38 +11:00
d039cc69dc
Fix T46441: texture paint soften brush at 0 strength works at full strength.
2015-10-29 21:06:38 +11:00
70549fe8e0
Fix T45152: multiview/stereo render not working with Freestyle + Cycles.
2015-10-29 21:06:38 +11:00
9bfc5fc7b5
Fix T44048: freestyle lines in Cycles are in the wrong color space.
2015-10-29 21:06:38 +11:00
c24d88d488
Fix T46437: Make progress report py helper resitent to 'zero steps' passed value...
...
To be backported, should we need an 'a' release.
2015-10-29 21:06:38 +11:00
a66d700fa7
small fix for potentially unintended calculation
2015-10-28 19:43:01 +01:00
2ccdaf398e
changed calculation of stability factor for compounds and adapted UI a bit (for compounds)
2015-10-28 17:38:34 +01:00
12806f5ef8
disabled damage propagation (and settings) in code and ui, was slow and not really necessary, also fixed a crash which happened when freed bullet manifolds were used again.
2015-10-28 16:43:40 +01:00
e6d181c01a
tiny fixes for autohide and attempt to get rid of propagateDamage crashes (again)
2015-10-27 13:19:46 +01:00
e3254e3615
attempted fixes for : autohide, damage propagation in compounds (was crashing after some time) and compound parameter changes do reset the cache now, too
2015-10-27 11:32:48 +01:00
2dfdbe4081
calculating minimum impulse per object now, also made solver iteration settings not visible for compounds any more (they relate only to constraints)
2015-10-26 20:25:59 +01:00
5cb7c07e31
attempt to fix some (stack overflow related ?) crashes
2015-10-26 15:34:40 +01:00
fe4909e752
tiny fix, forgot to assign ids to meshislands in splitshards to island mode
2015-10-26 14:43:36 +01:00
e2a01d408d
small fix for ui description of mass_threshold_factor
2015-10-25 09:41:32 +01:00
3c8876c5a1
new parameter "stability factor" (for constraints, compounds) and resetting all shards by default now on refracture, except in mousebased fracture (faster to keep unchanged shards there)
2015-10-25 09:27:37 +01:00
d64c367560
some enhancement attempts for compounding, supposed to be better controllable in some cases, but still odd behavior with multiple compound objects
2015-10-24 13:01:03 +02:00
5019780664
fix for triggers and multiple compound objects (but compound building is slower again, due to necessary broadphase handles for triggers)
2015-10-23 18:45:28 +02:00
d72a489ddb
exposed a couple of compound damage propagation parameters, need to test still to find good values
2015-10-23 12:02:41 +02:00
42f644204c
windows compile fix
2015-10-22 21:53:18 +02:00
8611d01c68
crash fix in propagateDamage, checking for index being smaller than connection size now
2015-10-22 19:58:08 +02:00
ba39be6bc3
speed enhancement for building compounds (omitting broadphase handles) and successful test with clusters, values need a bit tweaking but basic principle works
2015-10-22 13:16:42 +02:00
a7b45823be
added very basic damage propagation scheme to compoundbased fracture (direct damage is too small, can be increased this way, but you mostly get single parts falling off only)
2015-10-21 17:32:01 +02:00
b212d62340
some fixes for compound method, but still not very well controllable
2015-10-21 15:18:26 +02:00
597936b3fb
new feature: attempt to accelerate simulation of many adjacent shards by compounds; todo... improve connectivity check
2015-10-20 21:31:29 +02:00
962480865a
fracturing multiple settings seems to work (again) but todo: splinters, multiple islands / setting, constraints
2015-10-18 11:25:52 +02:00
0eae9ab115
fix attempt for splinters, did crash.. now works but its incorrect for multiple settings
2015-10-17 17:49:10 +02:00
9168aface9
small fix for multiple fracture settings (but, other files still dont work with it, investigating...
2015-10-17 15:47:03 +02:00
4a2dad0f8d
multiple fracturing settings seem to work, but tested with 1 file only for now...
2015-10-17 15:28:21 +02:00
ade29c9713
fix for older blends, so they work as before again
2015-10-16 21:13:32 +02:00
e0fdc8279c
experimental new feature: multiple fracture setting per predefined mesh island, delimited by a vertexgroup per island
2015-10-16 20:48:15 +02:00
c2730a8554
dynamic fracture, another improvement attempt, still a bit jerky movement
2015-10-14 20:01:41 +02:00
45d9914ac3
dynamic fracture: attempt of fixing rotation, its better than before but still not 100% correct
2015-10-14 18:16:31 +02:00
9dcabad07b
fix for trimesh shape, in case of fracture modifier take physical mesh from each meshisland as shape mesh now
2015-10-11 21:51:58 +02:00
bd5d172bb3
allow to update deforming rigidbody mesh even when vertex count changes (by revalidating it), good for having fluids as deforming rigidbodies for example
2015-10-11 20:53:32 +02:00
48f7dd68f8
Fix T46403: motion tracking not workig with Xcode 7 on OS X.
...
Caused by use of the uninitialized shape_ variable in Resize().
2015-10-11 11:55:11 +05:00
3ed22c3f3c
Revert "Fix T46406: Cycles ignores default socket value associated with group socket"
...
Fixes T46442.
2015-10-11 11:54:51 +05:00
23f7e16960
Fix/Workaround T46431: blender-softwaregl crashes
...
Order of initialization bug only impacted mesa's software-gl.
For now effectively revert support for glx-context-flags.
2015-10-10 13:48:35 +05:00
a3cf9c54d8
Use PyThreadState_GetDict, avoid Python internals
...
Works around problems caused by exposing Py internals (Py_BUILD_CORE).
Build error with GCC, Py3.6 & OpenMP
Linking error on MSVC
2015-10-09 23:01:22 +11:00
d53af76420
Blender 2.76: Point submodules to updated release branches
2015-10-09 16:40:54 +05:00
51384e7e36
Blender 2.76: Entering release stage
2015-10-09 16:31:46 +05:00
48c50bea72
Fix T46420: Segfault when instancing smoke domain.
...
Looks like instancing of smoke sim is not supported at all
(was fake-working in 3DView in 2.74, but not rendered).
But it should not crash - code was adding temp 'fromdupli' base to the delayed
drawing list...
Nice to backport this to 2.76 I think.
2015-10-09 16:23:41 +05:00
31d3d434aa
Correct own error in editmesh bvh
...
Flag mix-up and uninitialized var.
2015-10-09 16:23:41 +05:00
f39babc9d6
Fix leak creating 'empty' looptri bvh tree
2015-10-09 16:23:41 +05:00
a67433bc19
Fix T46415: empty node group in GLSL shader has incorrect socket type conversion.
2015-10-09 16:23:40 +05:00
7a93fbc807
Fix T46407: Enabling OSL breaks Vector Transform node
2015-10-09 16:23:40 +05:00
68d5e1d3ae
Fix: Do not show "Paste Flipped" in the Dope Sheet's Grease Pencil mode
2015-10-09 16:23:40 +05:00
323851fa71
Fix: "Tweak user" red-alert flag was not getting set on strips on active track
...
The "tweak user" flag used to flag strips using the same action as the active strip
was not getting set on other strips that live on the same track as the active one.
Strips with this flag set are shown with a red colour to indicate that editing the
action may have the unintended consequence of modifying another strip.
2015-10-09 16:23:40 +05:00
85f5c1a362
Fix T46406: Cycles ignores default socket value associated with group socket
2015-10-09 16:23:40 +05:00
f4ac865367
Cycles: Fix wrong float3->float3 conversion node
2015-10-09 16:23:40 +05:00
dc018d4f61
Fix bplayer (c)
2015-10-09 16:23:40 +05:00
ef7a3fb2fb
Fix T46405: Cycles point density missing update when modifying source object
2015-10-09 16:23:39 +05:00
5d0a99b6ee
Cycles: Fix for point density always using render settings for modifiers
2015-10-09 16:23:39 +05:00
7980891a13
Fix T46410: VSE Mask ignores animated properties
2015-10-09 16:23:39 +05:00
8d22715d67
Fix T46401: bad step size w/ radians
2015-10-09 16:23:39 +05:00
fe32c438ac
BMesh: maintain select-history when sorting
2015-10-09 16:23:39 +05:00
5d59a51aca
Fix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work
...
Make sure the Action Actuator actually deactivates when given a negative
event while using the property play mode.
2015-10-09 16:23:38 +05:00
ad950be67c
Fix mesh validate: 'r_changed' ignored loop edits
2015-10-09 16:23:38 +05:00
a79f439580
Fix game-property use-after-free error
...
D1538 by @hal01
2015-10-09 16:23:38 +05:00
9713b11644
Fix FileBrowser: do not show 'advanced filter' panel outside of lib browsing context,
...
it’s only used there so far.
Reported by Thomas Beck (plasmasolutions) over IRC, thanks.
Safe enough for 2.76.
2015-10-09 16:23:38 +05:00
d5e1c9ab9f
Fix T46390: Sound sequencer API doesnt' work when built with SCons
...
The issue was caused by original patch efde4dbb
.
This seems to be really old bug, but safe for 2.76.
2015-10-09 16:23:38 +05:00
1b7fc80ecd
Fix T46392: Navmesh generator error.
...
We now have to explicitely enure tesselation of DMs when we need it.
Notes: Maybe we could use looptris here as well?
Not a regression (bug already present in 2.75, but not 2.74), nice to backport to 2.76 nontheless.
2015-10-09 16:23:38 +05:00
9ccec0a288
Fix T46389: Shrinkwrap fails in editmode
...
Own regression caused by fix for T46067,
edit-mode bvh only contained unselected faces.
This commit adds support for an edit-mode bvh containing all faces.
2015-10-09 16:23:38 +05:00
e95a213f7a
Fix T46333: Particle Info Node broken w/ BI
...
Patch from @a.romanov
This also fixes multiple particle systems - which never worked.
2015-10-09 16:23:37 +05:00
e5a6c542af
Cleanup: warning
2015-10-09 16:23:37 +05:00
c647685538
Fix T46375: Inverted scroll in node template menus
2015-10-09 16:23:37 +05:00
1a37144ecd
Fix T46354: Curve Modifier does not update (new Dependency graph)
...
Result of curve modifier depends on transform of the object which should
be reflected by the depsgraph relations.
2015-10-09 16:23:37 +05:00
3b17a650b6
Fix T46377: No python executable in 2.76 rc3 distribution for OSX
2015-10-09 16:23:37 +05:00
f7bc573b60
SCons: Support compilation with 10.11 SK on OS X
2015-10-09 16:23:36 +05:00
971566ba46
Fix T46352: Cycles fails to render when material contains UV mapped texture as volume input
2015-10-09 16:23:36 +05:00
365dadeecc
Cycles: Remove redundant coordinate clipping in voxel SVM node
...
It is now handled via texture extension type.
2015-10-09 16:23:36 +05:00
5c0d68d687
Cycles: Fix missing z-coordinate check in volume sampling
2015-10-09 16:23:36 +05:00
b5ca4ee5b0
Fix T46358: Cycles point density uses repeat extension type
2015-10-09 16:23:36 +05:00
a142beb888
Fix T46305: normal map display issues in viewport when using VBOs.
2015-10-09 16:23:36 +05:00
690621bd24
CMake: detect OS X 10.11 / Xcode 7.
2015-10-09 16:23:35 +05:00
8621f480bf
Fix T46368: Subtitle Export: Subtitles are not sorted by time.
...
We need a temp list of Text effect strips here, to be able to sort it as we want...
2015-10-09 16:23:35 +05:00
b2d325a768
Fix (unreported) broken export of timecodes in SubRip VSE exporter.
...
Would write 1.04 seconds as `00:00:01,40` instead of `00:00:01,040`...
Anyway, we already have BLI API for timecodes, much better to add
SubRip timecode format there, heavily simplifies code.
To be backported to final 2.76.
2015-10-09 16:23:35 +05:00
9b153763a3
InstallDeps: Fix broken OSL (would not generate valid default names for its .oso pre-compiled files).
...
Also, externalize temp/hacky patches in own dir, much much cleaner than integrating them in bash script!
2015-10-09 16:23:35 +05:00
1bc28db0ef
Fix memory leak in compositor code with RGB curve nodes.
2015-10-09 16:23:35 +05:00
0c6346379f
Cycles: Correction to point density with particle source and world mapping
2015-10-09 16:23:35 +05:00
2976a94c84
BGE: Fix T46302: abort call for unnormalized quaterions.
2015-10-09 16:23:35 +05:00
ea835c8a73
Fix T46339: Edge sliding when there is only one vertex in the mesh crashes blender.
...
If t->mode remains edge/vert slide, restoreTransObjects() ends up calling
projectVert/EdgeSlideData(), which tries to access invalid customdata...
Not sure why we call again restoreTransObjects() and resetTransRestrictions() here tbh,
but safer not to change that for now.
Should be backported to 2.76 if possible.
2015-10-09 16:23:34 +05:00
c2d070a3fb
Fix T46321: 3D view not refreshed immediatelly after pasting keyframe in dope sheet (for a single channel)
2015-10-09 16:23:34 +05:00
2f7eb53ed0
Fix T46331: File open does not show thumbnails, when a filter_glob is provided by python scripts.
...
No reason to exclude usual file-type 'guessing' for operator-filtered extensions...
Safe for 2.76, should we need to merge more fixes.
2015-10-09 16:23:34 +05:00
596bf1aff6
allow freeslip / partialslip in fluid with export animated mesh on obstacle, for testing purpose with fracture modifier, attempting to reduce fluid jitter on moving shards
2015-10-08 19:51:42 +02:00
3e4ce322c4
allow deforming rigidbodies now with mesh_source 'FINAL' as well
2015-10-06 22:47:25 +02:00
fb78f6d518
Fix T46332: Can't select an object with OpenSubdiv enabled
...
The issue was introduced by a wrong fix for T46247. Now both reports should
be properly solved.
2015-09-30 21:05:13 +05:00
035d27dca6
Revert "Fix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU compute would be -INF."
...
This reverts commit b278e8742b
.
2015-09-30 21:05:06 +05:00
e1c77fb98d
Address request from T46136: make softrange for 'simple deform' angle from -360 to 360 degrees...
...
This should be safe enough for final 2.76, sould we make other RC.
2015-09-30 20:22:59 +05:00
e0a08d50a2
Blender 2.76: Update Release Candidate splashscreen label
2015-09-30 20:09:46 +05:00
7914d04d13
Fix T46325: Armature: No more possible to rotate a bone with only its tip selected, in EditMode.
...
Regression from rB312cb0a957b81233ea, now we make an exception for TFM_ROTATION mode...
2015-09-30 20:08:26 +05:00
67dffa60ae
Fix T46313: Cycles bake normal map
...
Regression moving to bake to looptri
caused by mismatch w/ MFace and MLoopTri when the 3rd index was 0.
2015-09-30 20:08:26 +05:00
ae4fcdc7ba
Fix T46299: Windows: File Browser Crash while listing big folders in preview mode (fonts, images...).
...
Windows-only bug, mmap & co are not threadsafe by default on this platform, so we have to add a dedicated
spinlock for them in win32.
Note that we may try to get rid of those mmap later, but not for 2.76!
To be backported to final 2.76...
2015-09-30 20:08:26 +05:00
24615ecab5
Blender Internal: Fix regression in point density texture
...
The issue was introduced by original Cycles point density support commit,
it lead to a constant density of 1 for object verticies point density source.
2015-09-30 20:08:26 +05:00
6cb20d6287
Cycles: Fix wrong particles min/max calculation for point density
...
Solves wrong object mapping reported in T46301.
2015-09-30 20:08:26 +05:00
2ecc405b69
Fix T46285: "Select parent" if there is no parent doesn't work correctly.
2015-09-30 20:08:26 +05:00
c3dbb533b2
Fix T46271: switching between textures in texture buttons not updating preview.
2015-09-30 20:08:26 +05:00
0191a618ef
Fix T46212: blender internal lights in exclusive light group wrong in viewport.
2015-09-30 20:08:25 +05:00
c31bace2a4
Fix crash reporting render errors during baking.
2015-09-30 20:08:25 +05:00
Julian Eisel
4d76fdd3e9
Fix file browser not sorting file list when opened from editor menu
2015-09-30 20:08:25 +05:00
Julian Eisel
b3d12f65c0
Fix node auto-offset to left broken
...
Own, really stupid mistake in rBc653077bf56 :| Kids, don't commit at night!
2015-09-30 20:08:25 +05:00
7dcd3a0e0d
Fix T46249: Boid goal object that has a force field set to 'Every Point' shape causes crash.
...
This is a mere bandage, that whole area is known broken anyway, but at least it should prevent the crash.
Note that that kind of stuff (the efd->index being a pointer) is really bad practice imho...
Should be backported to final 2.76.
2015-09-30 20:08:25 +05:00
7a81cccd1d
Fix T46239: Cross effect strip input fields can't be changed (in its properties panel).
...
Those shall not be editable in UI...
2015-09-30 20:08:25 +05:00
fd964bbf1c
Fix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU compute would be -INF.
...
Trivial fix, to be backported to final 2.76 if possible.
2015-09-30 20:08:25 +05:00
Dalai Felinto
a985bf73e5
Multiview: fix Image Editor not showing Views menu when rendering
...
non-stereo Multi-View camera rigs (unreported)
2015-09-30 20:08:24 +05:00
ca1809988a
Fix T46226: Bake normals multi-res crash
2015-09-30 20:08:24 +05:00
21c00cbd0e
Fix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph
...
The issue was caused by driver referencing path outside of the key datablock.
2015-09-30 20:08:24 +05:00
eae90798b6
Fix T46232: Boids crash w/ random rule selection
2015-09-30 20:08:24 +05:00
34bcd2f0ea
Fix T46219: Knife cuts fail away from center
2015-09-30 20:08:24 +05:00
Dalai Felinto
99cdafc651
Fix T46225: Crash when rendering halo flare
...
Error introduced in the multiview commit.
Also bringing back the "continue" statement instead of "return", as it
was before multiview.
2015-09-30 20:08:24 +05:00
7ea1e5de8d
Fix T46222: Eyedrop picking objects inconsistently
2015-09-30 20:08:23 +05:00
3399314a6f
Blender 2.76: Point submodules to new commits
2015-09-30 20:07:06 +05:00
39155c1c46
Revert last commit where attempt of keeping autohide state was made
2015-09-27 21:15:44 +02:00
a2ff84c66a
attempt to reduce flickering with autohide by memorizing which faces were not deleted in one autohide pass and keeping them, side effect: when playing the sim backwards autohiding wont work properly until reset to start frame again.
2015-09-27 20:50:07 +02:00
479a1a9a1a
separate autohide and automerge distances, autohide alone is ok for glass and is faster, while automerge is more useful in conjunction with smooth objects and fix normals, to hide the cracks better, also automerge caused errors with thin glass objects like window panes
2015-09-26 17:47:18 +02:00
e24ea81d65
Fix T46215: Explode modifier looses textures
2015-09-23 19:02:27 +05:00
f6445cd6ae
Fix T46217: Make normal artifacts
2015-09-23 19:02:26 +05:00
8db7ca1cca
Fix T46202: OS X (and Windows?) crash when going fullscreen.
...
Calling event handling recursively during window live resize is problematic,
the code wasn't designed to do that. Instead postpone event handling until
after live resize.
2015-09-23 19:02:26 +05:00
05ed4a4da1
Update module test to pass w/o freestyle enabled
2015-09-23 19:02:26 +05:00
eca8d9aa02
Update test to RNA API
2015-09-23 19:02:26 +05:00
6b9d496aa5
prevent assert: select-linked UV delimit w/o UV's
2015-09-23 19:02:26 +05:00
c8670f45b9
OpenSubdiv: Fix crash with empty mesh
...
Reported by newbz in IRC, thanks!
2015-09-23 19:02:26 +05:00
65a56a10bb
FFmpeg: Solve memory leak happening on encoding video
2015-09-23 19:02:25 +05:00
96c0aebeae
Fix T46194: Crash rendering particles
...
Off by one error in 38940662
2015-09-23 19:02:25 +05:00
d26fc19fd8
Remove arbitrary simulation time limit in liquid sim. Tested and works fine with more than 100s
2015-09-23 19:02:25 +05:00
f6b0194746
Fix T46201: Popup menu in post_load handler crash
...
Match regular file loading logic for new-file operator.
2015-09-23 19:02:25 +05:00
a41bdb77d3
Fix bplayer (c).
2015-09-23 19:02:25 +05:00
fe98ce1375
Sequencer: show X,Y in text effect location
2015-09-23 19:02:25 +05:00
a457ad0057
Render: Free persistent image storage when loading new file
2015-09-23 19:02:25 +05:00
d16ee90b9c
Fix (unreported) Append/link code: All library datablocks could end with same name.
...
This was broken since ages I think, did not really hurt since we usually never use libs' names
to access them. Rather bad behavior however, breaking a ground rule of our ID system!
And no real reason to add new libraries to new (split) Main at all, libraries are
never considered linked datablocks, which means they should always be in 'main' Main->library list.
Not a regression, but should be included in 2.76 imho.
2015-09-23 19:02:24 +05:00
c0384c4645
Fix T46159: OpenSubdiv does not always give same results as Blender own subsurf code with crease edges
2015-09-23 19:02:24 +05:00
23427bfebf
Fix view-selected w/ custom bone shapes
...
Was ignoring bone-length, also check that drawing shapes is enabled.
2015-09-23 19:02:24 +05:00
574e859e38
Fix T46186: Panel doesn't update on brush change
2015-09-23 19:02:24 +05:00
869c3344c9
Fix T43715: IK pole target + stretch not working for a single bone chain.
2015-09-23 19:02:24 +05:00
78f4e22dc3
RNA: angle step-sizes were too small
...
These were ignored previously, so it wasn't noticeable.
2015-09-23 19:02:23 +05:00
Julian Eisel
869736b5d6
Fix node auto-offset failing during heavy compositing (sometimes)
...
Compositing might make main thread so busy that animation is considered done due to duration before final position is reached.
Also added check to avoid unnecessary redraws.
2015-09-23 19:02:23 +05:00
cec28ebf5e
Fix T46050: blender internal geometry node UV not working inside node group.
2015-09-23 19:02:23 +05:00
3c30467cda
Fix T46144: blender internal face texture color wrong in raytraced reflection.
2015-09-23 19:02:23 +05:00
c8200c000a
fix build error w/ clang
2015-09-23 19:02:23 +05:00
74b210387f
Fix T46169: Link to bpy API in addons tab of user preferences is outdated.
...
Now use auto-generated one, like e.g. for link in Help main menu...
2015-09-23 19:02:23 +05:00
c08896e2c4
Fix T46161: Rotate around selection changes bezier curve handle type.
...
Issue is, when 'Rotate Aroud Selection' is set, in Edit mode we do a fake transform operation
to get center point around which to rotate. For curves, most transform operations involve
a check of handle types. For now, added 'TFM_DUMMY' as an exception here.
Think it would be best to actually undo those changes in case of cancelled operation,
but this is much more involved, while this fix is safe enough to be included in final 2.76.
2015-09-23 19:02:22 +05:00
aabb8db753
Fix leak in UI Panels
...
Switching screens quickly didn't free the panels activedata.
2015-09-23 19:02:22 +05:00
Julian Eisel
139cab0937
Correction to previous commit
2015-09-23 19:02:22 +05:00
Julian Eisel
1358920716
Fix file key select using wrong file after border select in scrolled view
...
Basically, after border selecting, a wrong file was selected by using arrow keys if the screen was scrolled a bit vertically. Reason was that we didn't use correct view space coordinates but region space coordinates for measuring distance from mouse to first/last file in selection after border select.
2015-09-23 19:02:22 +05:00
42eb1cc64e
Fix T46030: Strange behavior of Cycles Brick Texture
...
Added some extra seed to the hash, so it's now less likely to give repetitive
patters at values around zero.
This will change distribution of bricks for existing files. but it's something
inevitable.
2015-09-23 19:02:22 +05:00
07c3311475
Fix UI crash entering very long strings
...
Strings exceeding UI_MAX_DRAW_STR weren't null terminated.
2015-09-23 19:02:21 +05:00
141de0cc7f
Fix T46148: Sculpt view-clip fails in ortho mode
2015-09-23 19:02:21 +05:00
b0a6d48659
Doc: escape enum name & description
...
Needed since key enum now uses many characters as they're typed.
2015-09-23 19:02:21 +05:00
c586e30053
Blender 2.76: Update translations submodule
2015-09-17 19:48:06 +05:00
7b8bfec06d
Merge branch 'master' into blender-v2.76-release
2015-09-17 19:46:21 +05:00
20bc9aadc6
Blender 2.76: Point submodules to latest release branch from according repos
...
No tagging is done yet, will happen in a bit.
2015-09-17 18:03:23 +05:00
c86186f030
small crash fix for fast bisect / fast bisect fill
2015-09-12 15:20:35 +02:00
1bd9a911c4
crash fixes for greasepencil edge fracture
2015-08-07 15:38:23 +02:00
f870eee4d4
fix: remove doubles on internal cutter mesh created by (nearly) cyclic greasepencil strokes (so non-manifolds are avoided there)
2015-08-06 21:10:57 +02:00
9263098a7f
fix: set cutter axis correctly (RNA called a different function there)
2015-08-06 19:33:05 +02:00
aa8c0143d2
mark "Dynamic Fracture" as WIP
2015-08-06 14:41:32 +02:00
d05a85cd7f
compile fixes due to merge
2015-08-06 14:23:10 +02:00
4c52ad04b1
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
CMakeLists.txt
build_files/cmake/macros.cmake
intern/cycles/kernel/geom/geom_triangle_intersect.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/svm/svm_closure.h
release/scripts/modules/bpy_extras/io_utils.py
release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/BKE_deform.h
source/blender/blenkernel/BKE_mesh_mapping.h
source/blender/blenkernel/BKE_object.h
source/blender/blenkernel/BKE_rigidbody.h
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/SConscript
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/animation/keyframes_general.c
source/blender/editors/armature/armature_edit.c
source/blender/editors/gpencil/gpencil_ops.c
source/blender/editors/object/object_intern.h
source/blender/editors/object/object_shapekey.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_fluidsim.c
source/blender/modifiers/intern/MOD_normal_edit.c
source/blender/modifiers/intern/MOD_util.c
source/gameengine/Converter/KX_BlenderSceneConverter.cpp
2015-08-06 14:22:23 +02:00
2c58498e6d
fix: properly initialize cluster indices of mesh islands, failing to do so caused different activation behavior when triggering
2015-07-23 17:47:02 +02:00
840cc057a1
crash fix, do not reset shards in dynamic fracture
2015-06-13 10:55:45 +02:00
a8226be315
automatically trigger entire clusters now, if any
2015-06-13 09:22:18 +02:00
a051a76c8a
attempt to add a cut by objects / geometry (other FM) option as well as properly resetting shards after fracture parameter change (the latter didnt work properly)
2015-06-07 21:21:06 +02:00
929b0fb444
added possibility to brickify objects, but you need to craft a brick helper object which consists of several islands and covers atleast the bbox of the object to be fractured, and you need to put a fracture modifier which creates just islands on the helper object as well
2015-06-07 16:45:09 +02:00
9a891f26dd
fix: limit speed transfer to dynamic objects only, caused severe glitches with prefractured objects
2015-06-06 23:04:44 +02:00
2421696f60
fix : fast bisect algorithms caused misbehavior when refracturing, also removed the forced settings (Mesh shape, constraints) with fractal boolean
2015-06-06 15:50:36 +02:00
73f1c37871
fix: display glitch when triggering shards due to own error in pointcache
2015-06-06 11:19:44 +02:00
c1447bc9ba
fix: reducing the shard count didnt work with new, faster refracture method in prefracture
2015-06-05 21:22:48 +02:00
289d8b247e
dynamic fracture: some crash fixes when changing between prefractured and dynamic mode (memory was partially overwritten instead of cleared)
2015-06-05 19:23:47 +02:00
40f3759482
dynamic fracture: disabled loading / saving of dynamic mode again, it still has too many issues
2015-06-04 20:34:17 +02:00
cd603674c9
dynamic fracture: re-added modified version of speed transfer, it depends now on linear / angular deactivation threshold whether speed is transferred or not (to reduce "jumping" of shards on the ground)
2015-06-04 14:20:13 +02:00
52ef935b7d
dynamic fracture: relocated some functions and removed speed transfer from parent to child shards, it looked unrealistic, but TODO, animation often stops in case of fracture events....
2015-06-04 10:28:04 +02:00
3a40e2b657
dynamic fracture: new option to limit the first impact (shard activation area can be limited to impact object)
2015-06-03 16:43:05 +02:00
90d6041f4e
for now, deactivate loading for dynamic files again, there are still issues to solve (like proper cache handling after loading)
2015-06-03 11:25:46 +02:00
6f71cb361e
dynamic fracture: cache works much better now
2015-06-03 11:01:32 +02:00
89e2e80ef6
dynamic fracture: slightly improved caching behavior, but it still flickers and doesnt continue simulation properly after cache ends
2015-06-02 15:44:25 +02:00
d79851ba2f
fix: small rotation fix for dynamic fracture and fix for shard lookup
2015-06-02 14:27:10 +02:00
0e5638c04b
fix: crash when repeatedly refracturing in prefractured mode with same settings
2015-06-01 21:27:06 +02:00
9888d30bb6
fix: crashes with dynamic fracture, but this is still WIP !
2015-06-01 20:26:57 +02:00
2c26325272
some performance improvement with mouse based fracture (addon), only attempting to refracture necessary shards
2015-06-01 15:40:23 +02:00
3392741d19
dynamic fracture: do reset after settings changes and clean up constraints now too in dynamic fracture events
2015-05-27 18:29:25 +02:00
e4fbcce537
dynamic fracture: now multiple dynamic objects can exist, need to test interaction with prefractured, though
2015-05-21 18:28:18 +02:00
07ce06d212
dynamic fracture: fix for loss of rotation, and transferring speeds of parent shards to children now
2015-05-21 12:02:33 +02:00
9161459515
dynamic fracture: finally the transforms seem correct... but this mode still is highly unstable, and is prone to crash often, use sparsely !
2015-05-20 23:03:31 +02:00
0d27ecdc04
hrm, now somethings with caching is broken... need to investigate
2015-05-19 16:35:45 +02:00
809402e927
still fighting with proper transformations in case of multiple fractures
2015-05-19 15:55:40 +02:00
30b3ebb59a
dynamic fracture: fixed transformation calculation
2015-05-18 22:40:41 +02:00
d00f6177ae
dynamic fracture: works a bit more stable now, but still lacks proper transformation calculation and speed takeover from parent to child rigidbodies
2015-05-18 20:33:24 +02:00
360c01cb86
dynamic fracture: attempts with loading and saving, and proper caching, still highly unstable
2015-05-18 16:29:39 +02:00
ec90dcb5b7
first commit of dynamic fracture, still highly unstable, needs fixes in storage handling and memory management
2015-05-17 22:04:55 +02:00
1e5c376e0f
fix: crash when using fractal boolean with 1 shard and split shards and other misbehavior (boolean did not create valid rigidbodies, so objects were stuck in the air with 1 shard and fast bisect / fast bisect fill created 1 shard too much everytime)
2015-05-07 19:52:26 +02:00
f168ba85a9
fix: passive vertexgroup was ignored
2015-04-19 09:54:22 +02:00
728f259329
fix: loading subobject group modifiers correctly again
2015-04-07 18:46:06 +02:00
4f9941afcb
fix: modifier will respond now to manual changes in transformation (setting values numerically, clear transformations, apply transformations and origins) and ghost setting should be respected properly now with mesh collision shape
2015-04-07 17:10:48 +02:00
f369be74d3
previous merge went wrong somehow, several parts of mesh data transfer code were missing
2015-04-01 13:43:48 +02:00
4e7f37c6e8
compile fixes due to merge
2015-04-01 11:32:33 +02:00
85cb9a2b0d
Merge remote-tracking branch 'refs/remotes/origin/blender-v2.74-release' into fracture_modifier
...
Conflicts:
intern/cycles/render/scene.cpp
release/datafiles/blender_icons.svg
release/datafiles/blender_icons16/icon16_mod_data_transfer.dat
release/datafiles/blender_icons32/icon32_mod_data_transfer.dat
release/scripts/startup/bl_ui/properties_data_modifier.py
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/BKE_customdata.h
source/blender/blenkernel/BKE_data_transfer.h
source/blender/blenkernel/BKE_mesh_remap.h
source/blender/blenkernel/intern/customdata.c
source/blender/blenkernel/intern/data_transfer.c
source/blender/blenkernel/intern/data_transfer_intern.h
source/blender/blenkernel/intern/deform.c
source/blender/blenkernel/intern/mesh_mapping.c
source/blender/blenkernel/intern/mesh_remap.c
source/blender/blenkernel/intern/object.c
source/blender/editors/include/UI_icons.h
source/blender/editors/object/object_data_transfer.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_datatransfer.c
source/blender/modifiers/intern/MOD_util.c
2015-04-01 11:31:53 +02:00
000dfc0319
Point submodules to the final release tag
2015-03-31 18:39:23 +05:00
dedfd0cfa9
Branch is not really a release state!
2015-03-31 18:26:53 +05:00
08f7b20ebb
Bugfix: Fix for crash when trying to create new action in Shape Key DopeSheet mode
...
When the active object had no shapekey data, trying to create a new action from the
Shape Keys mode of the DopeSheet would crash. The segfault here was a silly regression
caused by my earlier Action Stashing work.
However, the old (pre-Action Stashing) code here also wasn't that great either.
While it didn't crash, it would still silently create a new action, even if that
could not get assigned/used anywhere. To prevent both of these problems from
happening again, I've added additional null checks, as well as beefing up the poll
callback here to forbid keyframing
2015-03-31 18:18:05 +05:00
4f57f15648
Fix T44077 material update fails in textured mode when VBOs are off.
...
The issue has been here since we changed drawing code for meshes to use
vertex arrays instead of immediate mode when VBO was off. Basically we
should now always invalidate the GPU objects regardless of the VBO
setting in the preferences.
The bug has been there since 2.73 at least, but what made it apparent
now is that new version resets preferences and as an extension the VBO
flag.
Should be included in final 2.74 release
2015-03-31 18:18:05 +05:00
a555fa5b28
Fix T44201: Crash Deleting Hierarchy in Outliner
...
Typical error using '->next' member of a freed linked list item. A bit trickier
even here, since we have some recursion...
Trivial fix for nasty crasher, safe for 2.74 imho?
2015-03-31 18:18:05 +05:00
abb92632f8
Fix T44193: Hair intersection with duplis causes flickering
...
It was an issue with what bounds to use for BVH node during construction.
Also corrected case when there are all 4 primitive types in the range and
also there're objects in the same range.
2015-03-31 18:18:04 +05:00
5ca59f7134
Fix T41191: Custom Loop Normals Viewport shading not updating when set from py script
...
Missing update tagging...
Safe for 2.74.
2015-03-31 18:18:04 +05:00
accd6083a5
Fix for invalid buffer access on zero-face meshes
2015-03-31 18:18:04 +05:00
e6b81ae69a
Fix T44186: Bezier Bevel facto mapping broken when 'start' was set to 'Resolution' and 'end' was not.
...
Trivial, we need totla_length in that case too.
Safe to be backported to 2.74.
2015-03-31 18:18:04 +05:00
5ca0cf3702
Remove use_invert_vertex_group use_ prefix
...
To match other modifiers.
2015-03-31 18:18:04 +05:00
6410b1bd59
Fix T44149: Compositing : Node Groups do not work correctly
...
Input constants are to be connected before removing proxies,
otherwise node groups might give totally different result.
This is a regression and to be put into final release.
2015-03-31 18:18:04 +05:00
5e92d1254e
Fix T44137: bpy.path.is_subdir fails
...
`bpy.path.is_subdir("/abc/def/ghi","/abc/de")` incorrectly returned True
2015-03-31 18:18:04 +05:00
3593082a75
Point addons to 2.74-rc4 tag
2015-03-26 21:12:32 +05:00
cb19df1c45
Bump splashscreen to rc4
2015-03-26 21:04:56 +05:00
b2a3796b2d
Fix T44133 SSAO in OpenGL rendering from orthographic camera did not
...
work
Safe to include in final release
2015-03-26 16:18:41 +05:00
01a29487e8
Fix T44138: Crash in DataTransfer modifier when selecting a source with no loops.
...
Simply check and early return in case we have no source or destination items
(verts/edges/loops/polys) available...
Also, fix an assert in `BKE_mesh_calc_normals_poly()`, when called with no poly.
2015-03-26 16:18:41 +05:00
1311f2d8f1
Yet another fix for crashing particles.
2015-03-26 16:18:41 +05:00
30e06a1775
Fix 2 typos ( shakin' hands )
2015-03-26 16:18:40 +05:00
1c8ee52423
Fix for crash when using particle emission with clump/roughness curves
...
in a smoke sim.
This interaction between sims is totally stupid and must be recoded
entirely in some utopian future.
2015-03-26 16:18:40 +05:00
dcfbffcf57
Fix T44128: Ray visibility only enables diffuse if glossy is also enabled
...
Issue was caused by accident in c8a9a56
which not only disabled glossy
reflection if Glossy visibility is disabled, but also Diffuse reflection.
Quite safe and should go to final release branch.
2015-03-26 16:18:40 +05:00
fa1fc11344
Simplify recent commit
2015-03-26 16:18:40 +05:00
143dbfb33e
Fix T44118: Rotated background image disappears
...
Image clipping didn't take rotation into account.
2015-03-26 16:18:40 +05:00
f1f797599f
Fix T44123: Cycles SSS renders black in recent builds
...
Issue was introduced in 01ee21f
where i didn't notice *_setup()
function only doing partial initialization, and some of parameters
are expected to be initialized by callee function.
This was hitting only some setups, so tests with benchmark scenes
didn't unleash issues. Now it should all be fine.
This is to go to the 2.74 branch and we actually might re-AHOY.
2015-03-26 16:18:40 +05:00
8804e6493c
Point addons to v2.74-rc3
2015-03-24 20:31:27 +05:00
3ec48d3bd8
We're now RC3
2015-03-24 19:49:40 +05:00
eb9826d8d9
Versioning code to correct socket naming after
...
340b76b42c
Reported by formerly Old_Demon on blenderartists.
Apparently this caused old files to lose their links to material sockets
(noob own mistake from inexperience with node system).
This should either be included in release with version checking being
set to version 2.73 and subversion 10, without tweaking the
BKE_blender.h file
OR
340b76b42c
should be reverted for this
release.
Thanks to Lukas for checking this out.
Conflicts:
source/blender/blenkernel/BKE_blender.h
source/blender/blenloader/intern/versioning_270.c
2015-03-24 19:49:18 +05:00
c7dc142c1b
Fix T44102: Mirrored objects render black with Blender Internal and Autosmooth.
...
Normals are not vertices, we cannot apply matrix's scale to them...
2015-03-24 19:47:50 +05:00
d2d3a41ce8
Fix T44089: All addons do not use same default for orientations.
...
Transformed 'OrientationHelper' class into 'orientation_helper_factory' function,
which returns an OrientationHelper customized class with specified default axes.
2015-03-24 19:47:50 +05:00
03d662d7bd
Fix T44065: fixed vehicle constraint
...
Commit ffee7f1a58
broke vehicle constraints; this fixes that.
2015-03-24 19:47:50 +05:00
33bf1e0e18
Revert part of D1074 related to acceleration taked into account.
...
It has been reverted because it was affecting obstacle avoidance
(T44041).
This fix should be backported to 2.74
2015-03-24 19:47:50 +05:00
6289d5b8d1
Fix T44110: Plane track doesn't work when built with scons
...
For some reason recent change in avoiding non-aligned eigen vectors
was behaving differently for cmake and scons. Made it a bit different
now by storing scalars. This is more robust approach anyway, because
it's not really guaranteed Mat.col() gives a pointer inside data,
depending on column-major vs. row-major storage.
This is to be backported to 2.74 branch.
2015-03-24 19:47:50 +05:00
6b1638cf79
tweaks to packman build
...
remove --asroot arg to makepkg
2015-03-24 19:47:50 +05:00
07e815df4b
Fix T44076, SSAO in solid mode will disable antialiasing in wireframe
...
mode.
Yes it will, because those modes stay active. So on user side, expose
depth of field option always (I don't see why not), but disable SSAO in
wireframe/bounding box mode. It is a known limitation that compositing
does not support antialiasing yet, but better give users some more
control.
This could be included in final release but it's not that serious
either.
2015-03-24 19:47:49 +05:00
a10e7ca830
Make sure matcap icons are within range.
...
Basically out of range could happen when opening files made in 2.72 when
the new icons for texture painting were added. Apparently some more
caution is needed here.
2015-03-24 19:47:49 +05:00
01ee21ffb9
Fix T43926: Volume scatter: intersecting objects GPU rendering artifacts
...
Fix T44007: Cycles Volumetrics: block artifacts with overlapping volumes
The issue was caused by uninitialized parameters of some closures, which
lead to unpredictable behavior of shader_merge_closures().
2015-03-24 19:47:49 +05:00
3cf120be67
OSX: fix 1 leak ( found and fixed by marcclintdion ) and 1 possible leak in dragndrop, backport to 2.74
2015-03-24 19:47:49 +05:00
d22c56819c
OSX/GHOST: need one more release in error case
2015-03-24 19:47:49 +05:00
ff455f1ae1
Partly fix T44025, pixelFormat retain was left, for 2.74 backport
2015-03-24 19:47:49 +05:00
9bbb53ef68
Cycles: Avoid memcpy of intersecting memory
...
Could happen when assignment happens to self during sorting.
2015-03-24 19:47:49 +05:00
7b9a8337ad
Disable IME for headless builds
2015-03-24 19:47:49 +05:00
210f90cb77
Fix for building win32 headless
2015-03-24 19:47:48 +05:00
856da320e7
Fix/Improve FKey bone creation
...
- new bone is now made active
- previous selection cleared
- bone direction places the tip on the active bone (if available)
2015-03-24 19:47:48 +05:00
2967c07a61
Add missing update adding a shape-key
...
Noticeable when pin is enabled.
2015-03-24 19:47:48 +05:00
638368a930
Fix T43989: Sequencer - Ctrl snapping a sequencer strip does not work if you specify the x axis.
...
New 'strip' snapping was simply not computed in case of constrained transform, hence init
'0' value was used as frame offset in this case.
This commit reorganizes a bit that snapping, to keep it more 'confined' into `snapSequenceBounds()`
dedicated function. It still needs a minor hack (setting snapping mode to something else than
defualt `SCE_SNAP_MODE_INCREMENT`, to avoid this snapping to be called by contraint code).
Thanks to Antony for review and enhancements.
This fix should be backported to 2.74.
2015-03-24 19:47:48 +05:00
bef0649151
Fix T44040: Blender crashes when nodes are muted
...
It was actually an old issue with wrong conversion happening for muted
nodes, which wasn't visible before memory optimization commit.
This is to be backported to the final release.
2015-03-24 19:47:48 +05:00
8108fc77c6
Fix out-of-bounds read BKE_deform_flip_side_name
2015-03-24 19:47:48 +05:00
d62e3e7001
Use fabsf for floats
2015-03-24 19:47:48 +05:00
16cc6ae80e
Fix for crash adding mask modifier
2015-03-24 19:47:48 +05:00
37172e7e49
Fix bad memory access freeing viewport which uses movie clip
2015-03-24 19:47:47 +05:00
f71f559d03
Fix crash using "Copy to selected" on ID-props
2015-03-24 19:47:47 +05:00
163d99b7a9
Fix crash using removed data as function arguments
2015-03-24 19:47:47 +05:00
06adae7b43
Fix RNA active spline assignment
2015-03-24 19:47:47 +05:00
9f69f7f700
Fix T44027: Normal Edit Mod : Radial from object normals affected by target object scale.
...
The way we were getting diff to apply to vcos from target object was just bad!
Also, fixed another related issue - negated scale would be clamped to nearly zero,
now only consider absolute version of size (we do not care about its sign here anyway).
This should be backported to 2.74 (with previous commit too).
2015-03-24 19:47:47 +05:00
4f08b3cf83
BLI math vec: add 'abs' functions to get absolute values of a vector.
...
Unseful when handling e.g. scale, sometimes.
2015-03-24 19:47:47 +05:00
c6f1be0728
Fix T44020: Crash exporting fluid sim to fbx
...
The issue is coming from wrong fluid modifier copy callback,
which might have left some pointers shared across original
and target fluid modifiers.
2015-03-24 19:47:47 +05:00
584aed0721
Fix T44021: Crash switching Rendering Engines while viewport rendering + animating
...
Make sure preview render job is cancelled before freeing the render engine
associated to the viewport.
2015-03-24 19:47:47 +05:00
337ce035b6
Make sure disabling attribute arrays also resets the counter so we don't
...
do it twice.
2015-03-24 19:47:46 +05:00
1ad57f287b
Fix T43853: Audio animation bug (fcurves)
...
For a detailed bug explanation see the comments in the report.
2015-03-24 19:47:46 +05:00
3523a136d0
use center between objects for constraint types different than fixed, note: other types only work between clusters and settings for them are limited to the type currently....
2015-03-22 18:17:11 +01:00
25397ea355
fix: some speed improvement for converting to objects or to keyframed objects and proper renaming of shards and constraints being created
2015-03-22 10:13:39 +01:00
9fa84d09e4
fix: another possible fix for loading correct vertexbased constraints
2015-03-20 00:32:10 +01:00
b3bc2166a6
fix: vertexbased constraints should be rebuilt correctly now after loading
2015-03-19 23:54:30 +01:00
fa116391df
added a new vertex coordinate based constraint build method, as alternative to meshisland centroid based constraint building
2015-03-19 18:06:15 +01:00
d11592a700
fix: crash with fast bisect and fast bisect / fill due to refactoring
2015-03-18 16:06:13 +01:00
9775830ef7
fix: bugfixes for fractal boolean and greasepencil edge cutting due to refactoring
2015-03-18 00:00:49 +01:00
14a023abdd
refactoring of FractureModifier: split very long functions into more, shorter ones
2015-03-17 20:48:03 +01:00
1f547c14ec
Point submodules to 2.74-rc2
2015-03-17 20:11:30 +05:00
a1bb0d698b
Fix an incorrect assert in lnor code.
...
There is one case where we do can have only two edges for two loops...
2015-03-17 18:19:46 +05:00
48d4b80246
Refer to Task 43975: Deleting a Shapekey can break the relative pointers
...
This patch would reassign the relative of all keyblocks to the relative
of the deleted keyblock. And it fixes the misalignement of the index values
after the keyblock is deleted.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D1176
2015-03-17 18:18:19 +05:00
8d31c7f452
Use "Release Candidate 2" string on the splash
2015-03-17 16:49:59 +05:00
ee87056fd9
Correct assert
2015-03-17 15:49:40 +05:00
9c154d5b58
Fix T43997: Paste fcurve keeps handle selection
2015-03-17 15:49:36 +05:00
a40d7b93ac
PyAPI: bpy.ops enum error was cut short
2015-03-17 15:49:33 +05:00
8c3853a9b5
Update themes for 2.74
2015-03-17 15:49:29 +05:00
Julian Eisel
b64d3bde8b
Fix T44003: Flatty Light: GPencil vertices and timeline keyframes black
...
I noticed our version code and subversion got out of sync in the past, maybe
that's what the issue was here.
Deleting the entries from the .xml makes it fall back to the default values.
2015-03-17 15:49:25 +05:00
931f876ddd
BGE: Fix for T43994 Steering actuator bug with Navmesh
...
Now the facing option is taken into account as before
This is a regression and to be ported to the final release branch.
2015-03-17 15:49:21 +05:00
2d1879b714
Fix T43959 jittering in 2D texture painting.
...
This is still not perfect,
but should work smoother now. Previously there was visible wobbling
while painting.
This can be included in final release.
2015-03-17 15:49:17 +05:00
86b862ecc9
Revert "Fix T43865: Cycles: Watertight rendering produces artifacts on a huge plane"
...
The fix was really flacky, in terms during speed benchmarks i had
abort() in the fallback block to be sure it never runs in production
scenes, but that affected on the optimization as well. Without this
abort there's quite bad slowdown of 5-7% on the renders even tho
the Pleucker fallback was never run.
This is all weird and for now reverting the change which affects on
all the production scenes and will look into alternative fixes for
the original issue with precision loss on huge planes.
This reverts commit 9489205c5c
.
2015-03-17 15:49:08 +05:00
651689fc62
Fix T43974: Alpha output of movie clip node crashes blender
...
Issue was caused by a bug in the memory optimization commit,
should be backported to the final release branch.
2015-03-17 15:49:04 +05:00
f0e37fceb2
Partial fix for T43967: Background is wrong in 2.74
...
Was missing do-versions code after rotation order change in Cycles.
This is a regression and to be ported to the final release branch.
2015-03-17 15:48:56 +05:00
d21c1dc1b4
partial material deletion fix for Fracture Modifier, effectively keeping necessary slots, else the mesh gets messed up which leads to crashes, and... making visible_mesh_cached now necessary for returning a dm out of the modifier
2015-03-13 10:32:54 +01:00
13551302c0
fix: correction for material handling with sub object groups, it could happen that the index was calculated incorrectly, thus leading to black faces (no material)
2015-03-12 21:37:51 +01:00
151b6f25db
added material handling for sub object groups, target object gets all materials of group (no duplicate slots, with proper index remapping)
2015-03-12 19:42:34 +01:00
8bd7d43ae0
added different constraint types which can be applied between clusters, with sub object groups meshes from different objects are converted to clusters automatically, so you can have in a limited way different constraint types between different objects
2015-03-10 12:42:37 +01:00
29c1dfcf8a
combined cutter group with other point sources now, and moved it under Advanced Options, and some cleanup of ifdef 0 code
2015-03-07 12:29:07 +01:00
546eee7005
crash fix: forgot to "walk" over the cutter_group inside the modifier, effectively forgetting to set references to the helper group, thus resulting in a crash at loading time
2015-03-05 20:55:56 +01:00
006d6cfaf4
fix: greasepencil by edges did not take object transformation into account properly
2015-03-05 20:23:41 +01:00
70f7052a54
possible fix for loading subobject group objects with textures
2015-02-25 22:43:38 +01:00
9b6c9a8299
fix: crasher at loading objects with subobject groups, but TODO, sometimes odd mesh error (like missing texture or even 1 displaced vertex, probably due to threading issues ?)
2015-02-23 21:01:07 +01:00
28da4a786e
fix: loading for subobject groups partially fixed, needs manual refresh afterwards still, TODO, proper material handling ("merge" object materials)
2015-02-23 14:20:56 +01:00
55df8ba231
fix: sub object groups should work a bit more reliable now, did crash very often before
2015-02-23 10:51:07 +01:00
e2669381e2
simplified greasepencil to mesh code (in fracture by greasepencil edge) a bit
2015-02-22 11:05:33 +01:00
c7b2cbe3b4
good performance improvement for autohide, using BM_face_at_index() now instead of BM_face_at_index_find(), which makes it reasonably faster
2015-02-22 01:44:27 +01:00
61ad3f80b7
fix: improved "fix normals" in conjunction with autohide, might be slower, but looks way better with the right settings (as in fix normals search radius and autohide distance) now, using limited dissolve with keep normals operator (during autohide)
2015-02-21 22:55:07 +01:00
f1714a370e
fix: skip invalid shards when doing voronoi+bisect+fill, (less than 3 verts), this caused crashes when trying to load files with fracture results being stored this way
2015-02-21 14:04:05 +01:00
a6b53d6892
fix: some performance optimization when rebuilding constraints on triggered objects (was calling unnecessary restoreKinematic() function in this case)
2015-02-20 12:57:07 +01:00
bb64f588dd
fix: rewrote clustering so it operates on the mesh islands now prior to constraint generation, instead of operating on shards only during fracture time
2015-02-19 18:58:23 +01:00
f5414f989b
fix: mesh was messed up if you used no pointsource, just the islands.
2015-02-18 23:33:22 +01:00
2d1b5121df
added greasepencil edge fracture, the direction of cutting is currently limited to global X, Y or Z axis
2015-02-18 20:46:15 +01:00
66affa5cf3
fix: cutter groups should work mostly now
2015-02-18 11:57:24 +01:00
eebf770f1d
fix : set some better default values for Fractal Boolean, so the object / default cube should not explode automatically, but its far from optimal still this way.... (active objects with Mesh Shape cause unstable simulation behavior)
2015-02-17 22:39:25 +01:00
3014c07906
fix : forgot to set inner material with fractal boolean
2015-02-17 22:13:21 +01:00
61ca70df40
added cutter groups, this is intended to define custom sets of objects to make boolean cuts against, but its still WIP, as it still fails too often
2015-02-17 21:37:55 +01:00
0a604079b6
revert bad activation fix for triggering, caused crashes in some cases (like on non-kinematic triggers)
2015-02-15 19:32:47 +01:00
30de8274a3
fix: trigger system now triggers in time, there was a delay before due to unnecessary postponed revalidation, now the shards are directly activated on hit
2015-02-13 16:47:30 +01:00
4d82812e13
fix: for severe performance issue with fractal, did unnecessary unwrapping operations there
2015-02-10 22:37:46 +01:00
ef47b883cd
crash fix: removing the fracture modifier again from object without executing fracture first did crash
2015-02-10 10:49:10 +01:00
02d82a9035
limit autohide distance between 0.0 and 10.0 (mostly very low positive values are used, like 0.001)
2015-02-09 14:24:09 +01:00
a238bbf323
crash fix: changing constraint settings prior to execute fracture caused a crash
2015-02-09 14:23:26 +01:00
f085584c71
fix: do not write shards with only 1 vertex, this causes problems when loading the file afterwards, omitting those shards and islands seems not having a negative effect up to now
2015-02-09 14:11:48 +01:00
43d426bb26
fix: crasher when appending object with modifier and when trying to remove rigidbody traces when no rigidbody world is available
2015-02-07 15:06:44 +01:00
28efc108ed
fix: added cluster_group to presets
2015-02-06 21:28:53 +01:00
3fb798666a
fix: clustergroup centroid search didnt take obmat into account
2015-02-06 21:24:00 +01:00
d4fce19d4f
added a cluster group setting, where helper objects can define locations of cluster cores (shards will be added to its clostest core always), converted objects belong to a group now also
2015-02-06 16:26:21 +01:00
5cabdd394f
fix: inner vertex group was empty after refracture
2015-02-04 14:49:59 +01:00
841d916796
fix : autosmooth didnt work on all faces when boolean fractal with smooth inner faces was used (added unnecessary sharp edges before)
2015-02-03 19:07:18 +01:00
a715ef9f7f
allow independent setting of cuts and iterations (please PLEASE keep low like about 5 max but not at the same time ! or computation time will explode) but this allows some control over fractal pattern,
...
also allow smoothing of inner faces
2015-02-03 18:02:13 +01:00
5263d91491
first attempt of fractal boolean fracture, but speed is slow, result may be messed up and sim is unstable (use mesh shape and margin = 0, as well as scale down the physics mesh... or use constraints to keep the object together)
2015-02-03 14:41:17 +01:00
746c5035c2
Revert "splash screen update for branch"
...
This reverts commit 53efacd78c
.
In future please don't commit custom splashes to branches, adds unnecessary binary file overhead to the whole repo
Noted here:
http://wiki.blender.org/index.php/Dev:Doc/New_Committer_Info#Branch_Usage
2015-02-02 09:40:21 +11:00
53efacd78c
splash screen update for branch
2015-02-01 20:04:10 +01:00
3bc11a9cf2
fix: crasher when removing the modifier on frame > 1 and trying to rerun the sim , fix: crasher when reverting the file with fracture modifier on it
2015-02-01 18:44:44 +01:00
9f987ae2d0
remove version hack for MeshDataTransfer (since this is reverted now)
2015-01-24 13:17:34 +01:00
3dda7a4312
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
source/blender/editors/space_outliner/outliner_draw.c
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_util.c (reverse-merged from commit 4401500cac
)
2015-01-24 13:15:58 +01:00
fd490f416f
Revert "Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier"
...
This reverts commit 4401500cac
, reversing
changes made to bdb170ca60
.
2015-01-24 12:58:35 +01:00
bbf09d9ee6
Point 2.73a release to updated addons revision
2015-01-20 23:16:03 +05:00
ced2738049
Show 'a' on the splash screen
2015-01-20 20:40:25 +05:00
e076fca578
Point addons to the backported revision
2015-01-20 19:10:39 +05:00
9bd38a1796
Bugfix T43293: Crash when editing shared GPencil datablock in VSE
...
The problem here was that when a Grease Pencil datablock is shared between
the 3D view and another one of the editors, all the strokes were getting handled
by the editing operators, even if those strokes could not be displayed/used
in that context. As a result, the coordinate conversion methods would fail,
as some of the needed data would not be set.
The fix here involves not including any offending strokes in such cases...
Conflicts:
source/blender/editors/gpencil/gpencil_edit.c
2015-01-20 21:17:56 +11:00
aee458d674
Fix error in freestyle api
2015-01-20 20:20:17 +11:00
08eabd1997
Fix own error in freestyle api
...
Conflicts:
source/blender/freestyle/intern/python/BPy_ViewShape.cpp
2015-01-20 20:20:03 +11:00
c9ca7b816e
Fix T43311: using displacement shader crashes blender
...
Issue was caused by wrong order of scene device update, which could
lead to missing object flags in shader kernel.
This patch solves a bit more than that making sure objects flags are
always properly updated, so adding/removing volume BSDF will properly
reflect on viewport where camera might become being in volume and so.
2015-01-20 20:18:23 +11:00
dd1be8ccc5
Fix for security issue loading blend's
...
Auto-Execute option could be overridden by opening a startup.blend
2015-01-20 20:18:23 +11:00
41cb67647d
Fix T43301: Three of the 'mirror keyframes' tools were mirroring along wrong axis.
...
Names are rather confusing here... :/
2015-01-20 20:18:23 +11:00
1bae0566b2
Sequencer: Don't crash when trying to rebuild proxy without having sequence edits
2015-01-20 20:18:23 +11:00
5374cfae78
SDL wrangler: Support loading SDL2 libraries of different names
...
Seems different distros might have different naming rules, so need
to adopt our code for that.
2015-01-20 20:18:23 +11:00
57087245a4
Fix T43156: Cycles incorrect final render, proper viewport with moblur disabled
...
Really stupid issue caused by typo in bitfield bit lead to bit conflict,
Not sure how it was done, could be some bad merge conflict resolve in the
original commit or just pure man stupidnes.
This is a nice example when having set of small test render scenes hooked
to the ctest would really help.
It's probably not that stopper issue (even tho still quite bad) since it
was made 2 months ago. But if we ever do 'a' this time it's a nice change
to include.
2015-01-20 20:18:23 +11:00
e51d7f1fb3
Fix T43229: Knife-project regression (broke knife-project)
...
There have been quite a few issues with knife precision,
tested reports (T43229, T42864, T42459, T41164) and this works with all.
2015-01-20 20:18:22 +11:00
f9aa8c64e6
BMesh: Tweak behavior for select more/less
...
Stepping over faces gives overall nice results but it stopped wire edges from working.
Now step over wire too.
2015-01-20 20:18:22 +11:00
0073b17d03
Fix OpenGL Context freeing
2015-01-20 20:18:22 +11:00
324d0448b1
Fix typo in OCIO configuration file
2015-01-20 20:18:22 +11:00
c08ef9c62a
Fix T43208 material flickering in edit mode.
...
Happens because material setting now occurs in the derived mesh drawing
routine as it should. However that means that it also happens during
selection and that influenced the drawing state somehow.
In 2.72 this did not occur because material setting happened during draw
setting (skip or draw) instead of after the draw setting passed (so
selection would skip it by use another draw setting function). Of course
this violated design but worked.
Made it now so backbuffer selection does not enable materials (it's
redundant in those cases anyway).
This could be ported to a possible 'a' release but as is classic with
display code there may be some other places that it could backfire.
Tested fix with texture/vertex painting and selection which use
backbuffer for both subsurf and regular meshes and it seems to work OK.
2015-01-20 20:18:22 +11:00
ba43ea24a7
Fix T43204: Shrinkwrap constraint, project mode: Space ignored in bone case.
...
Own fault in rBb154aa8c060a60d to fix T42447... Reverted that commit, and added
kind of not-so-nice hack instead.
Note root of the issue comes from the special case we are doing here re 'Local'
space of parent-less objects. In that case, local space should be the same as
world one, but instead we apply the object rotation to it... This is inconsistent
with all other cases and could very well lead to other issues as T42447, but afraid
fixing that properly would be rather hairy - not to mention it would likely break
all existing riggings etc. :(
Should be safe for a 2.73a, shall we need it.
2015-01-20 20:18:22 +11:00
1253a46370
Fix for regression in bmesh connect-pair
...
T42563 fix wasn't right, fortunately this doesn't fail in most cases.
2015-01-20 20:18:22 +11:00
9a0c2c734c
Fix texture sampling with generative modifiers - sample backbuffer
...
returns indices in mesh face range
2015-01-20 20:18:21 +11:00
973e387247
Fix for GTest
2015-01-20 20:18:21 +11:00
fdbedfef69
Fix gtest linking on ubuntu and do minor cleanup.
...
Generally for build systems, libraries that do not depend on other
libraries, such as system libraries, OpenGL etc always go at the end.
We could even get rid of some duplicate dependency libraries here but
auto duplication by build systems and differences between OSs make this
difficult.
GTest still duplicates all libraries twice to solve some issues which is
weird (maybe libs are not sorted correctly for some reason? needs
investigation)
2015-01-20 20:18:21 +11:00
1d0c23823d
Fix crash in texture paint sampling when sampling materials without
...
textures slots
2015-01-20 20:18:21 +11:00
a1a182c268
Fix T40257: Frustum culling not working properly
...
Instead of getting fancy this time, we'll just use Mahalin's simpler
fix. This may have slight performance impacts, but it is a lot simpler
than the previous fix and shouldn't cause as many bugs.
2015-01-20 20:18:21 +11:00
e5fbe7466e
Revert "Fix T40257: Frustum culling not working properly"
...
This reverts commit 315609ec0c
.
This fix still causes more issues than it solves.
2015-01-20 20:18:21 +11:00
012f7ca1b5
Fix invalid memory access in gradient brushes - could cause a crash in
...
MacOS.
This looks like an oldie and should not influence release, but if we do
make an 'a' build it's safe to include.
Report by Craig Jones, thanks!
2015-01-20 20:18:21 +11:00
22cc938056
ugly modifier numbering "fix" for fracture modifier... just for the branch!
2015-01-11 18:04:32 +01:00
4401500cac
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
source/blender/editors/space_outliner/outliner_draw.c
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_util.c
2015-01-11 17:35:46 +01:00
bdb170ca60
refactored function for loading fracture modifier out
2015-01-11 17:21:39 +01:00
53034cf102
compile fix due to function name cleanup
2015-01-09 15:12:47 +01:00
4c6b50c8ab
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
2015-01-09 14:54:19 +01:00
67439dfe06
Remove executable flag from the build configuration files
...
They're not intended to be executed directly and seems mode change happened
by accident.
Setting -x for this files to avoid possible incidents by trying to run this
files in shell.
2015-01-08 23:44:29 +05:00
96629dfe0e
exclude git/arc files from tgz archive
2015-01-08 23:44:02 +05:00
1a7c5ccbfb
correct permissions
2015-01-08 23:43:55 +05:00
Dalai Felinto
b4d8fb573e
Logic Bricks *must* be kept in alphabetical order
2015-01-07 18:17:20 +05:00
a52fe40c84
Followup to fe3e000
: no need to exit pose mode on operator redo
...
This is to be backported to the release branch.
2015-01-07 15:44:49 +05:00
fedb34c592
Fix: Segfault in Image Editor when transforming GPencil Strokes
2015-01-07 15:44:30 +05:00
9f5223e4d2
Fix: Missing updates for UI panels and main region when using Grease Pencil in Image Editor
2015-01-07 15:44:20 +05:00
2db46a6045
Fix: Restored "Draw Poly" to D Ctrl RMB, as D Alt LMB was blocked by Alt-D (duplicate) keymap
2015-01-07 15:44:15 +05:00
f7aab6ca5b
Blender 2.73 release commit
...
Hopefully this one would eb the exact revision used for 2.73 final release
2015-01-06 17:58:44 +05:00
110459c0da
GTest was broken on Linux
2015-01-06 14:57:07 +05:00
ee045d2bd5
BLI_string_utf8: add BLI_strncpy_utf8_rlen
2015-01-06 14:55:57 +05:00
d93ccef052
Fix T43143: DPX header wrong, making it impossible to import to other software
...
The issue was caused by the single letter in header, which is expected to be
captial as per standard: http://www.simplesystems.org/users/bfriesen/dpx/S268M_Revised.pdf
2015-01-06 14:33:39 +05:00
0b5a64fe7f
Fix T43122: Shrinkwrap target, wrong linked object
2015-01-06 14:33:39 +05:00
f322362363
Recent fix for SDL2 broke joysticks for SDL1.2
2015-01-06 14:33:38 +05:00
b8b7bd0e6a
Fix for crash for 'Edit Source'
...
was accessing freed menu region.
2015-01-06 14:33:38 +05:00
ff09547f80
Fix 8 memory leaks from bad PyList_Append use
2015-01-06 14:33:38 +05:00
91a975100c
Fix for view map cache not flushed by updates of edge detection options.
...
This fix should be considered for inclusion in the 2.73 release, since
it concerns a new feature of Freestyle introduced in 2.73.
2015-01-06 14:33:38 +05:00
5be01ff4b3
Cycles: Fix compilation error on AVX platforms with -arch-native
...
Was a conflict in headers between clew and util_optimization.h.
2015-01-06 14:33:38 +05:00
a912699792
Fix (unreported) 'pad9' not shown by UserPrefs' KeyBinding filter.
...
Minor glicth, but still... Safe for 2.73.
2015-01-06 14:33:38 +05:00
b7b5c99215
Fix T43099: Modifiers in edit mode might mess up materials
...
The issue was originall caused by 2e8ba17
by removing necessery call
GPU_enable_material(). It was probably removed because in some cases
material was enabled after calling setDrawOptions.
That wasn't always a case for edit mode.
This is absolutely to be included to 2.73
2015-01-06 14:33:38 +05:00
84dde30662
Fix T43066: Joystick broken in GE since 2.73rc
...
Caused by move to SDL2, fix thanks to jensverwiebe.
2015-01-06 14:33:38 +05:00
6fab0a4643
Joystick: Suppress add/remove device events
...
Previously they'll be printed to the console as a totally unknown events
together claim this shouldn't have happened which is just misleading.
2015-01-06 14:33:38 +05:00
137ddd665e
Fix an odd line that slipped in my ghost_hack_first_file commit
2015-01-06 14:33:37 +05:00
fe3e000511
Fix T42780: Object linking allows to have linked armatures in pose mode
...
This isn't so bad for until one goes re-posing the armature and then uses undo.
It is the same issue as with edit mode which was solved back in the days.
2015-01-06 14:33:37 +05:00
b0dc79c14b
Revert "Fix T42888: Separate and Combine HSV distorts the hue value"
...
This reverts commit 1549fea999
.
After some further discussion with other developers in the team it becomes
clear there's no correct solution here. It is just more matter of what's
more convenient in particular case.
We're just going back to old code to avoid possible frustration with the
older files in newer blenders. This also means all HSV/HSL is considered
to be "linear" in the shading nodes.
Would be ported to 2.73 final.
2015-01-06 14:33:37 +05:00
6b6b28a9d4
fix for doc generator
2015-01-06 14:33:37 +05:00
0a1deaf89c
Fix leak in cycles-bake
2015-01-06 14:33:37 +05:00
71d16196f3
Fix leak in select-similar regions
2015-01-06 14:33:37 +05:00
2a72518af7
Fix buffer overrun calculating unique names
2015-01-06 14:33:37 +05:00
a04f7de6b7
Fix a very stupid memleak in own bpy_app_translations.c code...
...
Safe for 2.73.
2015-01-06 14:33:37 +05:00
9cc8a5c673
Fix T43034: beautify-fill leaves zero area tri's
2015-01-06 14:33:37 +05:00
4508642489
cleanup: redundant tri-normal calculation
2015-01-06 14:33:36 +05:00
e436c83be0
Only add a fill brush to default .blend if there isn't one already. For
...
some reason this happened twice here.
Likely candidate for 2.73 final
2015-01-06 14:33:36 +05:00
950be80ab8
Fix T43010 regression in material setting.
...
Caused by own fix for another display case.
Shoud be safe for 2.73 final.
2015-01-06 14:33:36 +05:00
julianeisel
919ec85f6c
Fix T42977: Weights failed to display in Wireframe mode when using Face Select
...
D948, reviewed by @mont29 (thanks for that)
2015-01-06 14:33:36 +05:00
cde1351578
Fix T42641, Graphical fragments showing on Blender 2.71 and higher when baking.
...
Safe for 2.73...
This revert rB9b0ab890676790bb1e8e77797629b889ea66f69e - needed to set that threshold to a small
negative value to remove the last artefacts reported in T39735, but now I could not reproduce
any with the previous 0.0f value, so restoring it for the time being.
If this 'shadowed neighbor face' case re-appears, we can always choose a value in-between, like -1e-18f...
2015-01-06 14:33:36 +05:00
9556f61013
Fix T43013: Flip with bridge aligned loops
2015-01-06 14:33:36 +05:00
880f4fbc38
cleanup: use cross_tri_v2 when area isn't needed.
2015-01-06 14:33:36 +05:00
ae1d416aec
OSX: revive GHOST_HACK_getFirstFile cause it breaks things on older OSX versions.
...
Dunno exactly why this was done earlier, but propose not to remove code not understood.
2015-01-06 14:33:36 +05:00
31862bc562
Fix T42938: image.save_render sometimes saved the wrong pass
...
Stupid mistake with non0initialized image user.
Safe for final 2.73 release branch.
2015-01-06 14:33:36 +05:00
f1ab8f8930
Cycles: Fix really bad bug with shadow rays on non-SSE CPUs
...
basically shadow rays were totally broken and most of the time did not record
any intersections, leading to really ad rendering artifacts.
This commit makes it so regardless of enabled optimization level render result
would be the same.
2015-01-06 14:33:35 +05:00
3fcc5520fd
Fix rna paint update callbacks assuming meshes
2015-01-06 14:33:35 +05:00
5a51b93aa5
fix: restore kinematic state for regular triggered rigidbodies always now, they very likely were kinematic before, user must disable triggered checkbox if this is not desired
2015-01-02 15:15:01 +01:00
6c4c1fbb3c
fix for unnecessary activation of all parts again and again, this resulted in never ending movement... now this applies to kinematic objects only, which lose their kinematic state due to being triggered
2015-01-01 12:54:51 +01:00
752dd1c567
fix for incorrect merge in MOD_boolean_util.c, old functionality isnt necessary any more
2014-12-31 15:46:21 +01:00
6be2aab8d6
compile fixes due to merge
2014-12-31 14:00:22 +01:00
6b6a968053
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
extern/SConscript
release/datafiles/splash.png
release/datafiles/splash_2x.png
source/blender/blenkernel/intern/rigidbody.c
source/blender/editors/physics/rigidbody_constraint.c
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/intern/MOD_boolean_util.c
source/blender/windowmanager/WM_api.h
2014-12-31 13:59:45 +01:00
480ed9df62
crash fix: automatic material names management was wrong (got internally longer and longer and caused a stack overflow after some fracture attempts)
2014-12-27 16:21:34 +01:00
c93971e49e
fix: convert to keyframes works directly from bake now, too
2014-12-27 14:40:05 +01:00
be30a2cd18
added a trigger flag, only rigidbody objects with this flag can trigger other objects (which themselves must be animated and have their "triggered" flag enabled
2014-12-27 13:27:10 +01:00
d46632d4cf
fix: apply scale only prior to fracture again, preserve rotation because splinter rotation needs to be local
2014-12-27 13:08:27 +01:00
b0921d3f99
activate objects now when constraints are broken, this is an attempt to get rid of single shards stuck in the air, not being connected visually to other shards
2014-12-18 20:20:23 +01:00
fab16ef5d6
windows crash fix: material name had incorrect length
2014-12-17 21:00:28 +01:00
29434373dd
fix for: splinters (axises should be local X, Y, Z again), added object name into material name, and allow conversion-to-keyframed-objects of multiple objects at once
2014-12-17 18:34:46 +01:00
d7a9e5ac94
fix: load inner vertex group now directly after blend has been loaded (no additional refracture necessary)
2014-12-15 20:51:52 +01:00
904dc50fd4
fix for inner vertex groups (contains real inner shards vertices now only) and option for smooth inner faces (useful with following subsurf and displacement modifier, works properly with boolean only
2014-12-15 13:36:42 +01:00
42f7a29f57
small fix, need to check for context.object being possibly None
2014-12-10 23:35:51 +01:00
5bb20444c6
added hack to enable loading fracture presets via python (bpy.context.fracture is not known otherwise when using python_file_run, it needed a fake context
2014-12-10 23:30:18 +01:00
05fdb2e63f
added a breakable checkbox for fracture modifier, this is an attempt to enable destructability later on when needed
2014-12-06 22:53:50 +01:00
88ddeb3edc
Modifier GUI "redesign", second revision
2014-12-01 20:23:49 +01:00
b4b0eb6315
splash update
2014-12-01 19:52:43 +01:00
420dff8cd3
Modifier GUI "redesign", first revision
2014-12-01 13:12:49 +01:00
8e2b30f1eb
rename "Initial Particle Coordinates" to "Particle Birth Coordinates"
2014-11-24 16:39:23 +01:00
c890d60651
cluster breaking angle, distance, percentage added, rename contact distance to search radius, jump back to start frame of rigidbody cache now automatically at fracture time (or frame 1)
2014-11-24 16:36:27 +01:00
f09b89df01
automatically apply scale and rotation when executing fracture now
2014-11-21 20:41:15 +01:00
07d652a840
crash fix for convert to objects and fix for invalid positions after conversion as well (was all zeroed out)
2014-11-21 15:41:54 +01:00
1922d5e6d2
fix for convert to keyframed objects, had oddly rotating objects and NaN values in transform panel
2014-11-21 14:58:43 +01:00
b463ffc52c
small improvement for autohide, removing inner edges now as well
2014-11-17 15:48:58 +01:00
95ccb70e1d
fix for "fix normals", used incorrect float to short and back conversion and ignore global rotation of object in normals rotation now
2014-11-17 02:35:53 +01:00
60c776d014
limit autohide to faces with inner material and fix attempt for convert to keyframes bug (messed up object locations / rotations)
2014-11-16 16:23:09 +01:00
b89f7af287
added ghost objects, they do not collide but can activate animated objects
2014-11-16 03:07:31 +01:00
dcb0c61495
autohide now automatically removes doubles as well to close small gaps between shards due to constraint movement, tweaks to pointcache (no reset of cache) and a new bm operator (no normal recalc) were necessary
2014-11-15 00:35:18 +01:00
c519abe466
tweaks for convert to keyframe objects and fix normals
2014-11-14 16:49:34 +01:00
949be0f50a
change order of checked expressions in rigidbody object creation -> could crash on non-mesh object
2014-11-13 22:43:08 +01:00
1dc314342d
memory leak fix in find_normal
2014-11-13 01:43:07 +01:00
9283c5e96c
fix normals improvement: take only normals pointing to same direction into account inside a certain search radius
2014-11-13 00:12:39 +01:00
fdb18c9d64
can activate constrained objects too, new setting: cluster solver iterations override, attempt to show only cracks between clusters during activation
2014-11-12 13:14:00 +01:00
96aac3fa6f
rigidbody trigger activation fix, works better with constraints now and let objects with passive group appear as active
2014-11-12 11:46:36 +01:00
f7d25d5c6d
for rigidbodies with mesh shape, take only the mesh into account when triggering rigidbodies (instead of boundingbox)
2014-11-10 18:46:57 +01:00
985df04b87
only take active objects into account with kinematic deactivation (trigger)
2014-11-09 20:08:46 +01:00
f3d0a7591f
automatically create inner (and outer) material if not specified
2014-11-09 12:55:21 +01:00
0a59c0132e
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
source/blender/blenkernel/intern/pointcache.c
source/blender/blenkernel/intern/rigidbody.c
2014-11-08 12:58:48 +01:00
608a662ecb
triggered objects dont need to be fractured any more and restore kinematic after load
2014-11-08 12:14:36 +01:00
16ee031bb7
only activate actually touched shards (todo, maybe override this with a global setting)
2014-11-06 21:16:01 +01:00
b306d0de39
had to disable trigger of constrained object by other non-triggers, this lead to permanent bullet crashes
2014-11-06 19:06:08 +01:00
18675f77fc
another crash fix if simulation was continued after cache end with trigger and constraints, cache might behave incorrectly still if an object is refractured for example, but the others are not
2014-11-06 15:47:53 +01:00
ee199c563d
crash fix for trigger when used with constraints, they were attempted to be removed multiple times
2014-11-06 14:10:32 +01:00
1fb3642cda
added a new "Triggered" checkbox to rigidbodies, which allows them to be triggered in case they are kinematic. this will reset the kinematic state and make them dynamic
2014-11-06 12:39:58 +01:00
fcad67e087
fake trigger, disable animated checkbox on collision, (but this should be done by hand, earlier, to get better impact speeds)
2014-11-06 02:33:21 +01:00
936bb32d45
new splash screen and fixes for convert to keyframe operator, empty was parented incorrectly (depgraph update missing, but threaded option is broken now)
2014-11-02 01:44:22 +01:00
32a4b43dbc
bugfix, convert to keyframed objects didnt work when escape was used to stop the simulation before
2014-11-01 17:10:18 +01:00
88a66ded74
optional job system for convert to keyframed objects, faster conversion, and taking bakes into account
2014-11-01 14:37:58 +01:00
026ffafb1b
Bake modifier simulation to keyframed objects directly
2014-11-01 01:28:20 +01:00
d7bc7de7a9
customdata support with sub object groups
2014-10-31 11:46:12 +01:00
f12479c458
support fractured mesh as fluid obstacle
2014-10-31 02:08:34 +01:00
d2fa5668ae
centroid fix / point cloud fix, forgot to multiply with splinter matrix
2014-10-30 13:20:59 +01:00
f64eef7a5f
simplified wood splinter settings, can set scale factor and direction now directly
2014-10-30 12:10:37 +01:00
27521b0671
crash fix: when fracture is triggered on disabled modifier, modifier is re-enabled and fracturing again, simulation can crash. Also fix for not being able to fracture afterwards (push button twice or alternatively hit Alt A or remove and re-add the modifier
2014-10-24 20:48:25 +02:00
cfec1eea63
reordered functions and made them static in MOD_fracture.c, leaving out some unnecessary info for writing to blend in writefile.c (still have that read_struct memoryleak sometimes)
2014-10-21 18:55:18 +02:00
a6a38e56f4
compile fixes after using more strict compilation settings, quiet some warnings effectively this way
2014-10-19 20:59:34 +02:00
aa7ccbff35
crash fix: deleting fracture modifier helper objects left group objects with go->ob == NULL, which caused crashes in depgraph update, now also deleting group objects with go->ob == NULL
2014-10-19 13:28:34 +02:00
79392ccad9
simpler and cleaner reimplementation of clustering algorithm, caused crash before
2014-10-18 10:27:46 +02:00
a98a70dd0c
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
2014-10-12 17:13:29 +02:00
8cea11e1a7
memoryleak fix, forgot to free nor_tree in some cases
2014-10-11 15:22:25 +02:00
120b572367
fix for messed up mesh if object is moved out of particle range, and some clarification for sub object group (last attempt to fix failed again, hrm)
2014-10-11 14:31:16 +02:00
3aa6de7e43
fix for: comparison with wrong rigidbody count caused deactivation of the cache and simulation was not cached any more
2014-10-10 20:30:00 +02:00
a468002406
dont use BLI_findlink for first shard (can access directly) and load shards into correct "parent" struct
2014-10-10 16:29:33 +02:00
7ccbc6651b
crash fix when fracturing, missed initalization of listbase and quiet some warnings
2014-10-10 16:07:17 +02:00
3fbbb2752c
replaced Shard pointer to arraypointer by ListBase for FracMesh->shard_map in DNA, for fracture modifier
2014-10-10 15:55:50 +02:00
92dbf1c9da
forgot to calculate volume of whole object in mass calculation, leading to each shard having the same mass
2014-10-10 10:43:57 +02:00
e0712fc38b
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
2014-10-09 23:34:39 +02:00
556476ab22
reactivate fracture modifier object deform motionblur support, was disabled with last commit
2014-10-09 22:55:27 +02:00
b5ab717f88
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
source/blender/editors/physics/CMakeLists.txt (reverse-merged from commit c9769a6808
)
2014-10-09 22:28:51 +02:00
1c256222dd
memory leak fix for text fracture / sub object groups
2014-10-09 19:27:04 +02:00
c9769a6808
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
source/blender/editors/physics/CMakeLists.txt
2014-10-09 17:13:27 +02:00
c4b94f3049
explaining comment: "need to distinguish between mesh and non-mesh objects for fracture modifier" and quiet some warnings
2014-10-09 16:29:33 +02:00
bec396fc96
removed unnecessary conversion from radians to degrees (internally) and using degrees just in the UI
2014-10-09 16:24:55 +02:00
4048c4ddae
replaced rigidbody count function (avoiding 3 different loops over rigidbodies) and quiet some warnings
2014-10-09 14:55:42 +02:00
e75530e435
cleanup: automatic code styling with uncrustify_clean.sh
2014-10-09 13:52:13 +02:00
bc99752aa2
closed some memory leaks when calculating shard mass and after fracture (C++ cell struct)
2014-10-08 21:27:11 +02:00
ee936bc922
added new setting for fracturing with particle sources, in most cases you want to use the particle
...
birth coordinates as pointsource, but you can override this to get the coordinates of the current particle simulation state. But as the particle cache is kinda broken and shows wrong positions at beginning if simulation has been run before, this can lead to errors. Best practice is to keep this option enabled, only disable if you really need to !
2014-10-08 13:02:08 +02:00
255fe8a9b1
cleanup: removed unused code and quiet some warnings
2014-10-08 11:01:41 +02:00
aeaf5d2967
crash fix for fracturing with particles, missed proper initialization of voro++ interface struct (in case no computation takes place we need to zeroize the structs in the array though) and usage of particle_state instead of particle_birth coordinates, to be able to use particles not directly at birth position (after particle simulation has run a while)
2014-10-07 23:20:45 +02:00
78c9142163
crash fix for: appending objects with fracture modifier from library blends without their respective scenes and attempting to fracture then to build up the modifier structures
2014-10-07 16:54:34 +02:00
78a1999a2b
windows compile fix for inner shard unwrapping, used C99 standard array before there
2014-10-06 10:59:22 +02:00
556c4ae27f
scons compiling fixes
2014-10-05 20:35:59 +02:00
36fa6826a8
cleanup, removed old unused code (old access method with filepointer)
2014-10-05 20:35:26 +02:00
249ccbdca7
rewrote access to voro++ to direct memory access, no file descriptors needed any more, needs test under win / mac as well
2014-10-05 15:54:18 +02:00
6812ad4a82
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier_oldsim
...
Conflicts:
source/blender/modifiers/SConscript
2014-10-03 17:41:41 +02:00
c6c495d7bf
forgot copying cluster count when copying modifier settings
2014-10-03 16:38:30 +02:00
3a4344a9fa
attempts to fix one small memleak in read_struct, but fail.... grrr where on earth this is supposed to be freed again ?
2014-10-03 11:55:04 +02:00
07a4b5c8e2
set voronoi + boolean as default fracture algorithm
2014-10-02 18:33:32 +02:00
96c15edf23
quick fix: copy modifier settings when copying the object
2014-10-02 16:33:29 +02:00
d8f0f75896
memory leak fixes while fracturing, but small leak while loading still present
2014-10-02 15:47:40 +02:00
de4e6a8c74
re-enabled a bullet(!) assertion which earlier caused frequent crashes in fracture modifier, its not acceptable to disable it (and probably wont help much, either)
2014-10-01 19:45:18 +02:00
86dc5b4e91
fix for compiler errors due to obviously missing includes
2014-09-30 11:03:09 +02:00
0320a2818a
pre-review cleanup part 2 (style, comment cleanup)
2014-09-30 11:02:27 +02:00
454f6f7790
pre-review cleanup part 1 (until object.c, rest will follow in part 2)
2014-09-29 20:26:06 +02:00
fbed421177
removed some old demolition remainders (that was accidentally merged in before)
2014-09-25 12:47:16 +02:00
c9db5f28a5
merge related compile fix
2014-09-24 20:22:49 +02:00
249a962bf4
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier_oldsim
...
Conflicts:
source/blender/bmesh/intern/bmesh_operators.c
2014-09-24 18:38:59 +02:00
174b4e3c39
Merge pull request #4 from JT-a/fracture_modifier_oldsim
...
Updated and added GPL headers w/Scorpion81 as contributor.
2014-09-24 18:22:54 +02:00
JT Nelson
39a080a238
Updated and added GPL headers w/Scorpion81 as contributor.
...
NOTE: did not assign author as copyright holder. BF is assigned as copyright holder.
2014-09-19 08:26:21 -07:00
f323034489
preset update (covering newer settings) and inner vgroup now usable without inner material; but not very useful, hmm (because at higher shardcounts the entire object is selected, due to vgroup selection mechanism)
2014-09-09 21:09:20 +02:00
fa9e582898
inner faces are added to the existing active UVMap now
2014-09-09 08:58:28 +02:00
e5ff9cb892
first attempt of adding UVs to inner faces, need to pack them correctly still and put into separate UV Map....
2014-09-08 15:00:02 +02:00
1a39125f7b
fix for percentage (0 means deactivated again if not weighted) and used minimum again for weights
2014-09-05 00:02:20 +02:00
5a5cfba4a6
some bugfixes related to cleanup and taking averages for island weights again
2014-09-04 23:37:45 +02:00
837d3430bc
constraint crash fix and breaking conditions fix (were evaluated incorrectly)
2014-09-04 01:48:21 +02:00
fb95e45983
take minimum of island weight instead of average as threshold modifier
2014-09-04 00:10:44 +02:00
d5e20f82c2
cleanup related compile fixes
2014-09-03 23:32:23 +02:00
c9e7a26d2a
Cleanup for master, part 1, WARNING: Incompatible to older blends to to changes in DNA / loader
2014-09-03 22:41:46 +02:00
8a78bce10b
added weighted percentage, distance, angle
2014-09-02 22:46:56 +02:00
1f1573019c
fix attempt for own / extra vertices (was wrong transformation)
2014-09-01 13:03:34 +02:00
8bebaf6e29
fix for: customdata related crash in conjunction with split shards to islands
2014-08-31 23:11:18 +02:00
151d42c4bc
fix for: fix normals (will be stored and loaded now, and transferred to convert objects too, BUT: split shards to islands has a bug there still) and convert to objects (get rid of all modifiers before fracture in stack, so the result wont be messed up)
2014-08-31 13:32:30 +02:00
21a070ec33
marking inner edges as sharp for boolean and bisect fill, additional option to fix normals (with edgesplit modifier)
2014-08-30 22:09:43 +02:00
77a2313ee6
fix for bake to keyframes
2014-08-30 11:21:44 +02:00
a955cb0fe8
attempt for customdata warning fix
2014-08-29 22:15:17 +02:00
bb8f482b27
own particles transform fix (forgot to multiply with imat)
2014-08-29 20:41:57 +02:00
689909d027
added fast bisect + fill algorithm
2014-08-29 15:09:34 +02:00
9874aa532d
memory leak fix (autohide)
2014-08-28 23:00:23 +02:00
f8d4e67c4c
some depgraph fix (related to fracture modifier, and scene_sort_group()
2014-08-28 22:26:46 +02:00
fe30202984
some depgraph attempts... WARNING: unstable !
2014-08-28 21:33:13 +02:00
1d8c635499
fix for calculate mass crash, and attempt for edgebased fracture with voronoi (disabled, not working yet)
2014-08-28 18:18:32 +02:00
b2d7241473
crash fix when loading blend (due to new autohide option)
2014-08-26 11:54:55 +02:00
9f0017e426
added autohide distance, by default 0 and deactivated, as it slows down the sim and causes a big memory leak, also crashes randomly sometimes
2014-08-26 02:33:24 +02:00
149c6ed4b5
using inner material for finding inner vertex group now, other direct attempt was not successful
2014-08-24 13:21:54 +02:00
e79f713a66
float breaking angle and automatic deactivation (manual re-activation) of auto-execute when sim is started
2014-08-22 21:35:59 +02:00
8f9b3ee41b
fix: mesh shape related memory leak and rebuild constraints after refracture
2014-08-19 23:59:06 +02:00
9486eee9bf
attempt to create sub-objects by referencing a group of "child" objects within the modifier, but customdata transfer (like textures) wont work for some reason
2014-08-17 16:08:24 +02:00
1bec8ebf5c
fix for inner vertexgroup, it worked on 1 shard only because it was always deleted and recreated for each shard, instead of sharing it (split shard to islands needs an inner material still)
2014-08-13 09:37:24 +02:00
5c7774e166
memory leak reduction, there still is a smaller one in readfile.c somewhere, sigh...
2014-07-30 11:05:32 +02:00
c605ce3974
fix for crash at changing mass when not at frame 1
2014-07-29 19:51:18 +02:00
924fbed8bc
delete constraints always now before deleting meshislands, may crash otherwise
2014-07-28 16:50:44 +02:00
10b03edbc1
allow convert to object for modifier on non mesh objects too
2014-07-27 20:28:45 +02:00
6accd5ec1d
typo: used SURF instead of SURFACE, prevented panels showing up correctly
2014-07-27 17:27:00 +02:00
870c06a9f5
added possibility to fracture text directly
2014-07-27 17:21:21 +02:00
765d2addc2
fix for editmode selection bug, added new option "auto execute" -> enable for editing, disable for simulation
2014-07-27 12:36:52 +02:00
7d6f7b161b
crash fix for pressing "use constraints" prior to execute fracture
2014-07-26 18:47:30 +02:00
9a4ab59f33
another fix for the update bug, this time it really should work...
2014-07-26 13:33:01 +02:00
7e3190a51f
added support for inner vertex group... WARNING: this is still UNSTABLE
2014-07-26 11:57:23 +02:00
f21c0c9a4b
forgot to change one BLI_temporary_dir() call to BLI_temp_dir_base()
2014-07-25 23:57:10 +02:00
aaf82e554c
change: rebuilding constraints should work now, BUT you have to put a modifier on all rigidbody objects now, otherwise the regular active rigidbody object will be reset when continuing an interrupted simulation, need to investigate why...
2014-07-25 21:16:01 +02:00
6301adb673
fix for re-enabling the constraints, takes now all objects into account in the first sim step
2014-07-25 20:32:39 +02:00
36ed23d6d5
fix for constraint update bug, all constraints must be re-enabled after a fracturing run if they are not recreated
2014-07-25 16:55:57 +02:00
391c09519c
removed compound shape from RNA (did not work with modifier)
2014-07-25 16:55:15 +02:00
39945517e4
crash fix with other pointsources, forgot to initialize counts to 0...
2014-07-25 12:08:41 +02:00
a3b7f55d56
fix for losing texture images after load (pink object) but this still adds the image to the inner faces unintendedly, only should affect viewport and viewport render, glsl and rendering looks ok
2014-07-23 21:28:43 +02:00
9933f8ce80
convert to objects fix: now should take textures into account too
2014-07-21 10:29:02 +02:00
6b428cfb09
windows compile fix: replace BLI_temporary_dir() by BLI_temp_dir_base()
2014-07-21 08:37:35 +02:00
2101aaef83
fix for: fix normals, can use modifiers before fracture now too to get correct result
2014-07-21 08:36:57 +02:00
ed27f45665
revert last change again, was just a test
2014-07-20 21:00:15 +02:00
ead157ff39
gitmodules test
2014-07-20 20:43:18 +02:00
e67bba1100
merge related compile fixes
2014-07-20 10:13:57 +02:00
f1d6d5ab95
Merge branch 'master' into fracture_modifier_oldsim
...
Conflicts:
extern/CMakeLists.txt
source/blender/blenkernel/intern/rigidbody.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/object/object_edit.c
source/creator/CMakeLists.txt
2014-07-20 06:34:51 +02:00
79888418c7
forgot to initialize totvert variable prior to building a kdtree
2014-05-27 19:02:43 +02:00
1ccf1b3e8b
fix attempt for halving case, passive groups didnt work properly there
2014-05-27 16:42:00 +02:00
1f2077a8e4
added inner material support for boolean and bisect fill
2014-05-27 14:55:25 +02:00
eace5891ec
added a fix normals option to let cracks in smooth objects nearly disappear, also rotates the vertex normals with the verts... WIP... because i need somehow to get the derivedmesh of the previous modifier in stack if there is one
2014-05-26 22:58:42 +02:00
feee2a4a77
added vertweight display for fracture modifier, and attempt to update data in case vgroups are changed, but this doesnt work, seems to require a refracture to interpolate data again
2014-05-26 16:15:06 +02:00
5bac249193
added vertex group support to mark passive areas of an object (which remain static)
...
also rudimentary ground toggle / ground connect toggle operators
2014-05-25 22:05:46 +02:00
c1515ce482
compile fixes after merge
2014-05-17 13:32:39 +02:00
21c06c40f4
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier_oldsim
...
Conflicts:
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenkernel/intern/smoke.c
source/blender/editors/space_buttons/buttons_context.c
2014-05-17 12:56:31 +02:00
1e8aca99a8
just crash prevention, but mesh can still be messed up when attempting to move mesh out of fracture point location, especially with greasepencil
2014-05-14 23:47:42 +02:00
dd957e2be3
bah, other pointsources than uniform tend to crash, this is a fix attempt for greasepencil (but generally, dont try to move the object after fracturing with greasepencil by hand....
2014-05-14 23:37:38 +02:00
65b6952a6f
small gui fix in regular rigidbody constraints panel
2014-05-14 10:36:40 +02:00
f533d01fc8
well, a crash "prevention" with autosmooth, but it doesnt work anymore with the fracture modifier this way.
2014-05-13 23:22:40 +02:00
3b8eccb58f
added threshold vertexgroup support (a single vertexgroup with weightpainting)
2014-05-13 17:23:06 +02:00
d1bbe76be8
reactivated modifier editmode "support" (but well, it doesnt really work...) and removed fracture edit mode (didnt work at all)
2014-05-13 09:28:54 +02:00
bfd5143aa2
added fracture preset storage and fix for loading files -> mesh was doubled there
2014-05-13 01:07:33 +02:00
576c3c5f94
re-added contact distance and mass dep. thresholds, also fixed a python gui error -> override solver iterations in scene
2014-05-12 23:07:06 +02:00
3a9261dbdf
fix for automatical recreation of constraints after loading
2014-05-12 13:35:23 +02:00
a0ed785e78
fix for not updating fractured mesh with constraints enabled
2014-05-12 13:07:43 +02:00
dc96f8014d
fix attempt for messed up bake data after linking objects
2014-05-11 20:35:49 +02:00
c9e920de81
copy rigidbody world when linking objects to scenes (if it exists)
2014-05-11 19:10:26 +02:00
92b42ef2aa
can copy rb bakedata now with scene
2014-05-11 18:15:57 +02:00
4e5c2af871
crash fix for loading data with halving applied only (and no fracture)
2014-05-11 11:01:05 +02:00
04b00078d8
progress bar display fix attempt, still glitchy...
2014-05-10 16:54:59 +02:00
9f83814cb5
partial fix for progress display (can still exceed progressbar) and fix of a memoryleak when halving only
2014-05-10 14:19:21 +02:00
fb7ef3aed4
copied derivedmesh was not freed after usage
2014-05-09 20:55:46 +02:00
c9ad3c2da2
and even more gui cleanup
2014-05-08 19:34:12 +02:00
35cfca7a2c
further gui cleanup
2014-05-08 14:16:34 +02:00
4396f9df88
fracture gui cleanup
2014-05-08 01:09:59 +02:00
4e59fa1b4b
another crash fix attempt for refreshing constraint data on running / cancelled fracture
2014-05-07 18:31:55 +02:00
9687cb268c
partial fix for crash at refresh constraints during fracture, or after cancelling it
2014-05-07 17:43:30 +02:00
f4ff8ff505
prevent fracture modifier removal when job is running
2014-05-07 10:52:39 +02:00
2cced6f6ff
added running flag to prevent main thread from modifier execution when job runs, avoids crashes
2014-05-07 10:16:10 +02:00
27ef95a4b9
added (as experimental setting) the possibility to execute the fracture process as separate threaded job, but this crashes still very often, need to copy the modifier and stuff to a separate context and copy back afterwards
2014-05-07 01:59:48 +02:00
5f286bde0c
some code cleanup, and attempt to find memoryleaks, but some are still present, sigh... again customdata related...
2014-05-06 14:38:36 +02:00
f158870a9a
avoid crash when refresh after split to islands was missing and file was saved, but this is inconsistent sometimes, requiring an additional refresh possibly (due to memoryleaks possibly)
2014-05-05 23:33:08 +02:00
43e4a5b71e
customdata fix for split islands
2014-05-05 13:02:26 +02:00
9df14f9c67
storage of split islands should work now...
2014-05-05 12:55:58 +02:00
202fd41d1a
halving "improvement" made it only much worse performancewise, so keep the old one
2014-05-04 17:38:13 +02:00
44d97d0f47
added split shards to islands option... but with complex objects you need gazillions of constraints to hold this together... very very slow...
2014-05-04 14:47:58 +02:00
b986107829
another pointcache interpolation fix....
2014-05-04 11:11:21 +02:00
3279e9227f
possible fix for pointcache interpolation error with rigidbodies and subframes
2014-05-04 02:45:04 +02:00
cad0e8f07e
hmm motionblur did work now ? strange... so commiting this as well
2014-05-02 20:10:45 +02:00
991100912a
attempt to enable deform motionblur, FAIL... (object is not rendered at all)
2014-05-02 20:03:54 +02:00
e47b30595f
enabled dependsOnTime...
2014-05-02 17:50:04 +02:00
1cdc116566
fixed the halving again
2014-05-02 16:18:47 +02:00
3453390bad
deactivate plain voronoi fracture
2014-05-02 15:16:30 +02:00
ed2c7c7322
crash fix, return null if visible mesh is null
2014-05-02 14:23:52 +02:00
cffb510e65
some constraint change crash fixes
2014-05-02 13:46:09 +02:00
caf9d082cd
some memory leak hunting, but some are still there
2014-05-02 11:22:33 +02:00
d7bbdab2f4
removed "fracture level" stuff, did not work properly under windows...
2014-05-02 10:37:23 +02:00
0da7bcb78c
fix for warning; unnecessary semicolon...
2014-05-01 19:45:00 +02:00
13b97bbc0b
crash fix attempt for loading fractured blends
2014-05-01 19:15:40 +02:00
82ff09ef1a
attempt for saving / loading and texture preservation
2014-05-01 17:45:30 +02:00
0f80a3faaf
split the processing loops to an openmp one and an openmp free, due to crappy windows compiler error
2014-04-30 23:59:41 +02:00
94c50f1277
removed additional customdata markings, added openmp again (first was not working with textures)
2014-04-30 16:10:05 +02:00
2decc0c647
doubled the shard count internally for fast bisect so input count and output count match
2014-04-30 14:04:57 +02:00
3f8806d394
using malloc instead of calloc for bisect fracture
2014-04-30 12:38:01 +02:00
3e26dfc02e
nullify noisemap, for now to prevent crash on loaded file, modifier free
2014-04-30 11:32:25 +02:00
e3adc6e820
changed qsort to BLI_qsort_r
2014-04-30 00:32:50 +02:00
90e500c918
added a fast but inaccurate bisection method
2014-04-29 22:03:34 +02:00
5697d6f26d
attempt to speedup bisect, but cant use OpenMP now, so a bit slower... but less cpu load...
2014-04-29 12:46:47 +02:00
f5e17e1f59
extended the critical section, hopefully this stabilizes it a bit
2014-04-27 16:45:16 +02:00
9877852266
tried to increase speed by openmp, but crashes more often now, especially when freeing things (double free...) hrm
2014-04-27 14:59:00 +02:00
fb2198dfe3
some cleanup ...
2014-04-26 23:30:21 +02:00
c2382339d2
all "optimizations" made it actually slower, so using full copy now...
2014-04-26 23:21:00 +02:00
26d7665c09
hrm bisect does not get faster...
2014-04-26 22:13:07 +02:00
4ab0f421a7
attempt to accelerate bisect fracture, but no real success...
2014-04-26 18:26:12 +02:00
8d20bf15c5
mac does not support memorystreams (fmemopen and open_memorystream) as well... using regular file there too
2014-04-24 11:12:39 +02:00
f487116c32
was merged incorrectly as well...
2014-04-24 09:52:39 +02:00
5208108373
those were merged incorrectly from and older branch, error was visible in windows. (crashes)
2014-04-24 01:16:07 +02:00
cef5642825
removed incorrect include stdbool.h
2014-04-24 00:53:56 +02:00
3f87907478
argh, Windows did not support memorystreams, so had to add regular file as fallback
2014-04-23 23:43:59 +02:00
9f34788ad6
memory leak hunting, there is still one unfixable related to customdata behavior (need to alloc twice there somehow, grr...)
2014-04-23 14:51:04 +02:00
9831a6b3e2
attempt to store fracture result and read it, failed, so deactivated for now
2014-04-22 20:21:16 +02:00
74d486b56e
fix for crash at removing modifier
2014-04-22 17:46:00 +02:00
2c77a4da8c
fix : dont create meshislands for empty shards, causes trouble with rigidbody sim
2014-04-22 17:36:11 +02:00
b34d1f8f8b
rigidbody should work without fracture now too
2014-04-22 15:10:12 +02:00
6eb641b93a
some more crash fixes
2014-04-22 11:47:17 +02:00
4777e74694
some fixes and a bit performance optimization
2014-04-22 02:17:42 +02:00
2b718bda3f
small crash fix in case fracturing goes wrong (sometimes 0 shards...)
2014-04-21 22:58:41 +02:00
6d27993ad8
removed temporary material coloring of clusters and added support for uvs (boolean)
2014-04-21 22:41:44 +02:00
90d22621f5
fix for saving and loading
2014-04-21 13:55:44 +02:00
fe9c308bb1
sim should work again now
2014-04-21 00:46:50 +02:00
22dea61d55
hopefully simulation fixes...
2014-04-20 18:28:18 +02:00
0aa4f1d594
compile fixes...
2014-04-20 15:37:48 +02:00
462f1436c3
Merge branch 'refs/heads/rigid_fracture' into fracture_modifier_oldsim
...
Conflicts:
extern/CMakeLists.txt
extern/voro++/CMakeLists.txt
extern/voro++/src/Doxyfile
extern/voro++/src/c_interface.cc
extern/voro++/src/c_interface.hh
extern/voro++/src/c_loops.hh
extern/voro++/src/container.cc
extern/voro++/src/container.hh
extern/voro++/src/container_prd.hh
extern/voro++/src/wall.cc
extern/voro++/src/worklist_gen.pl
intern/rigidbody/RBI_api.h
release/scripts/startup/bl_ui/properties_physics_softbody.py
source/blender/blenkernel/BKE_rigidbody.h
source/blender/blenkernel/intern/curve.c
source/blender/blenkernel/intern/gpencil.c
source/blender/blenkernel/intern/mask.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/pointcache.c
source/blender/blenkernel/intern/rigidbody.c
source/blender/blenloader/CMakeLists.txt
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/animation/anim_markers.c
source/blender/editors/animation/keyframing.c
source/blender/editors/armature/armature_edit.c
source/blender/editors/curve/editcurve.c
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/interface/view2d_ops.c
source/blender/editors/mask/mask_ops.c
source/blender/editors/mask/mask_select.c
source/blender/editors/object/object_edit.c
source/blender/editors/object/object_modifier.c
source/blender/editors/physics/physics_fracture.c
source/blender/editors/physics/physics_intern.h
source/blender/editors/screen/area.c
source/blender/editors/sculpt_paint/paint_hide.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_clip/tracking_ops.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_sequencer/sequencer_select.c
source/blender/editors/uvedit/uvedit_ops.c
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesdna/DNA_rigidbody_types.h
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/CMakeLists.txt
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/intern/MOD_explode.c
source/blender/modifiers/intern/MOD_util.c
source/blender/windowmanager/intern/wm_event_system.c
source/blenderplayer/CMakeLists.txt
2014-04-20 14:43:14 +02:00
1972f7bd01
clustering for fracture
2014-04-20 12:41:40 +02:00
7bb6bf21d2
added point sources and seed
2014-04-17 12:13:19 +02:00
f49ddd310d
bisect fix, geometry disappeared before
2014-04-16 13:25:56 +02:00
35e4e8a4fd
missing brace caused compile errors...
2014-04-16 12:18:52 +02:00
15f50655e8
fixing compile....
2014-04-16 11:20:05 +02:00
a04214d107
Merge remote-tracking branch 'refs/remotes/origin/master' into fracture_modifier
...
Conflicts:
extern/carve/carve-capi.cc
extern/carve/carve-capi.h
extern/carve/carve-util.cc
extern/carve/carve-util.h
extern/carve/patches/series
intern/bsp/intern/BSP_CSGException.h
release/datafiles/locale
source/blender/blenkernel/BKE_mesh.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/makesrna/intern/rna_fracture.c
source/blender/modifiers/intern/MOD_boolean_util.c
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLLight.h
2014-04-16 11:05:38 +02:00
cc8bb235b9
pick attempts, fail
2014-04-16 10:32:24 +02:00
82285878f4
stuck / failing attempt for picking shards :(
2014-02-09 13:53:36 +01:00
de70b4e317
added (empty) fracture edit mode
2014-02-09 12:40:50 +01:00
e15f781ffd
integrated latest crash fix (empty mesh at union operands) from sergey
2014-02-07 10:56:05 +01:00
413a80f966
small typo fix from sergeys patch
2014-02-06 11:06:34 +01:00
af818d32b3
Better handling of flipped face normals coming from voro++.
...
Instead of flipping the normals on the derived mesh, produce the face
loops in the correct order for shards.
2014-02-05 19:27:58 +01:00
5b4caa03ac
Allow the fracture modifier to apply in editmode.
2014-02-05 18:51:48 +01:00
0daab1ef32
Fix for last terminator in voro++ output: this is just a single char.
2014-02-05 18:09:58 +01:00
310514c14e
Simplified neighbor parsing from voro++ output.
...
Number of neighbors is exactly the same as number of faces - each face
has one neighbor. Moved this into the face section of voro++ output too,
since it's essentially face data.
2014-02-05 17:57:52 +01:00
d20aec59bd
Fix for voro++ output parsing.
...
Use available print options from voro++ to get number of verts and loops
in advance, to avoid realloc. Also fixed bad mesh results with missing
vertices.
2014-02-05 17:16:59 +01:00
a3b452d752
Removed old dummy code for fracture.
2014-02-05 16:00:05 +01:00
9ca13f6e0e
Added fracture_util.h to keep internal utility function declarations
...
out of the actual blenkernel header.
2014-02-05 15:02:29 +01:00
2befce02af
a bit reduction of allocs, but still needed for loops (cant determine loop count fast / reliable for now in advance)
2014-02-04 20:37:01 +01:00
cbe0972d99
fix attempt for boolean
2014-02-04 13:54:17 +01:00
063d438054
Use a memstream again instead of a temporary file. But to avoid crappy
...
performance when directly parsing the stream, use a read-only string
stream afterward to do the actual parsing on the resulting char buffer.
2014-02-04 09:07:26 +01:00
bf59c1bc66
Use void argument to avoid compiler warning.
2014-02-04 08:54:12 +01:00
40fb7592f9
Applied diffs 837 and 838 from D274.
2014-02-03 13:25:42 +01:00
165bfecbc1
Merge branch 'master' into fracture
2014-02-03 12:39:30 +01:00
e66d3e5d0c
Merge branch 'arcpatch-D274' into fracture
...
Conflicts:
extern/carve/carve-util.h
intern/bsp/extern/CSG_BooleanOps.h
intern/bsp/intern/BOP_CarveInterface.cpp
2014-02-03 11:56:42 +01:00
9675ba189f
Merge branch 'master' into fracture
...
The previous master merge was squashed, this has been reverted to avoid
unnecessary conflicts.
Conflicts:
extern/carve/patches/series
2014-02-03 11:39:03 +01:00
4aeb8ea28f
Revert "Merge remote-tracking branch 'refs/remotes/origin/master' into boolean_fracture"
...
This reverts commit ecc10dbe29
.
2014-02-03 11:37:38 +01:00
15bb397fbb
Rework carve integration into boolean modifier
...
Goal of this commit is to support NGons for boolean modifier
(currently mesh is being tessellated before performing boolean
operation) and also solve the limitation of loosing edge custom
data layers after boolean operation is performed.
Main idea is to make it so boolean modifier uses Carve library
directly via it's C-API, avoiding BSP intermediate level which
was doubling amount of memory needed for the operation and which
also used quite reasonable amount of overhead time.
Reviewers: lukastoenne, campbellbarton
CC: scorpion81, karja, jsm
Differential Revision: https://developer.blender.org/D274
2014-02-03 10:50:01 +01:00
c7a3a79da1
new boolean patch by sergey and small fracture bisect fix (need unity_m4 obmat instead of ob->obmat)
2014-02-02 20:30:03 +01:00
ecc10dbe29
Merge remote-tracking branch 'refs/remotes/origin/master' into boolean_fracture
...
Conflicts:
extern/carve/patches/series
2014-02-01 15:53:38 +01:00
56beb2effe
testing new boolean patch, CRASH ! in intersect.cpp, line 438 from carve
2014-02-01 15:24:29 +01:00
c2edd4cf8c
memory leaks fixed
2014-02-01 13:11:52 +01:00
fe93f08d57
made fill optional with bisect
2014-01-31 23:31:56 +01:00
94c111072b
tested different bisect fill algorithms; triangle fill on triangulated input turns out to be best
2014-01-31 22:12:58 +01:00
ae25dc66df
changed memorystream back to real file, what a performance boost !
2014-01-31 19:33:00 +01:00
0de34dcda1
added shard count / shard id to gui, tested performance, its very lousy compared to my earlier modifiers
2014-01-31 18:10:24 +01:00
cd6a1f503a
made fracture algorithm selectable
2014-01-31 12:50:55 +01:00
87f2b86cd8
added bisect as second fracture algorithm
2014-01-31 12:23:25 +01:00
bffce8c727
tiny fix, boolean works without flipping the loops as well (except suzanne)
2014-01-31 10:08:38 +01:00
c20718e9d5
boolean fracture works ! (atleast partially, suzanne produces still errors)
2014-01-30 22:36:28 +01:00
5f8997a7a4
still a "negative" result, somewhere the normals need to be flipped, but how ??
2014-01-30 21:03:11 +01:00
98e0ec4850
Merge branch 'refs/heads/boolean_fracture' into fracture
...
Conflicts:
intern/bsp/extern/CSG_BooleanOps.h
intern/bsp/intern/BOP_CarveInterface.cpp
2014-01-30 19:08:35 +01:00
2993b02b8e
some fix attempts for flipping the face orientation, fail...
2014-01-26 23:56:30 +01:00
653a951ea3
first attempt of direct communication between blender<->carve layer and fracmesh, fail because normals are inverted....
2014-01-26 22:53:32 +01:00
b257850ce2
saving fracture to blend and loading from it
2014-01-26 13:48:05 +01:00
de2e6a7004
Removed the vertco member in Shard, this was previously used for
...
simulation but is not needed any longer.
2014-01-26 12:05:15 +01:00
98ae9b083b
Extended the BKE_create_fracture_shard funktion with a 'copy' argument,
...
so we can pass over arrays without having to do double alloc.
2014-01-26 11:58:09 +01:00
dd278f6a50
some memory leaks fixed, but some left, and attempt for writefile
2014-01-26 11:50:29 +01:00
57f8d0721f
parsing and createdm makes valid mesh now
2014-01-26 11:13:26 +01:00
d1393032a2
parsing of voro++ data should work now, but a crappy mesh appears, hmm
2014-01-26 01:42:17 +01:00
7ff93f27ea
attempt to parse voro++ data from string, not working yet
2014-01-25 23:36:03 +01:00
ca0b5ca635
Fix for point cloud construction: Use a point struct to avoid difficult
...
float arrays.
Also added Frac prefixes to prevent potential name collisions.
2014-01-25 20:41:03 +01:00
64e9066f4f
A few small fixes for the voro++ C API, which seem to have fixed a
...
freezing issue when building with clang.
Also min/max initialization for point cloud construction.
2014-01-25 20:29:13 +01:00
f91218cbdf
cmake cleanup: removed the ++ suffix from VORO cmake variables and
...
defines.
2014-01-25 20:02:03 +01:00
a511e86ebf
Stub code for voro++ integration.
...
Not functional yet, but needs testing for potential voro++ bug.
2014-01-25 19:26:05 +01:00
34c07eed51
Removed the ShardList return value of the fracture function.
...
This is not used atm and it's a bit ugly to return such allocated
values. If necessary this can be added back later.
2014-01-25 17:28:53 +01:00
f86d71b025
Updated the pseudo-fracture method to new Mesh types.
2014-01-25 16:29:58 +01:00
3c310d565a
New method for constructing the DerivedMesh for the fracture modifier.
...
Uses a simple union of all the shard mesh data.
2014-01-25 15:52:31 +01:00
f5e624aaad
Create the initial fracmesh geometry by copying the input DerivedMesh
...
as a single shard.
2014-01-25 15:23:31 +01:00
fa1ace9f2d
Removed the BMesh reference from FracMesh.
...
With the new Mesh data types this will no longer be needed.
2014-01-25 15:03:08 +01:00
5c21d96e5c
Use plain Mesh types (MVert, MPoly, MLoop) in shards instead of copying
...
BMesh element arrays.
This will make Shard work more like a mini-Mesh struct and allow storing
of mesh data in blend files.
Larger construction methods currently disabled, TODO.
2014-01-25 14:36:30 +01:00
77cfd4e2f8
Partial revert of previous commit: DerivedMesh should be released by
...
setting needsFree and then calling dm->release.
2014-01-25 13:43:55 +01:00
414352fced
fixed majority of memory leaks (of fracture)
2014-01-25 13:24:06 +01:00
090016f9d1
Moved the render_mesh DerivedMesh from FracMesh into the
...
FractureModifierData.
This keeps the derived mesh inside the modifier system and is more
in line with common principles in other modifiers.
Also did lots of style cleanup.
2014-01-24 17:15:22 +01:00
7e50455b8d
basic foundation for fracture modifier / operator laid; todo fix memoryleaks...
2014-01-18 22:01:24 +01:00
d832011b82
modifier initial setup
2014-01-18 15:23:54 +01:00
c0907a6aa7
initial commit for new fracture system
2014-01-18 10:30:57 +01:00
30467f8e5c
Code cleanup: As Sergey stated on bf-committers one should use id_us_min() if the user counter has to be decremented and not decrement the counter by hand.
2013-11-25 21:54:58 +01:00
3f8bd4fe15
Correct fix for T37617, (own recent regression)
2013-11-25 21:37:07 +01:00
375b6f5a57
Fix T37617: "Add plane" was adding a 2*2 grid
...
Was a regression from rBaa3c06b41ca9, hope this time all things are OK again (note the X/Y subdivision values still are different than before (-1 for same result), but imho they make more sense this way).
2013-11-25 21:27:35 +01:00
3f661c6355
Code Cleanup: rename vars for detecting change to be more consistent
...
rename change/is_change/is_changed/modified -> changed
also use bools over int/short/char and once accidental float.
2013-11-25 21:27:35 +01:00
a3050d4b2d
fix: marking edges as sharp in modifier did not work any more
2013-11-25 20:09:53 +01:00
f3007c42fc
partial fix for fracturing meshes where origin is not in bounds center
2013-11-25 20:09:53 +01:00
c1ae472a10
some hacks to keep baked files with clipping working...
2013-11-25 20:09:53 +01:00
f6b0828870
hopefully fixed atleast the fracture with text converted to mesh/remeshed and objects whose origin is not at bounds center
2013-11-25 20:09:53 +01:00
81fb6d5261
changed (i think corrected) the centroid calculation for fractured objects with boolean
2013-11-25 20:09:53 +01:00
b7a772f567
fixing crash at refreshing fractured text, cause was improper handling of the necessary temp object for boolean function (yuck)
2013-11-25 20:09:53 +01:00
d612fd67b4
attempt to make text and curves work with rigidbody modifiers too, still failing (flying apart... crashes...)
2013-11-25 20:09:53 +01:00
8d25904e52
fix for autorefresh and depgraph callback, strangely did only work for the testblend and not for others...
2013-11-25 20:09:53 +01:00
fb6afeedce
using direct function for dissolve in object conversion too
2013-11-25 20:09:53 +01:00
d58cbd01dd
using dissolve function now directly to circumvent (hopefully) the va_arg problems under windows
2013-11-25 20:09:53 +01:00
29766b78c3
cosmetical update in gui
2013-11-25 20:09:53 +01:00
f35868f1b3
fix for use_animation and no autorefresh, mesh was reset to initial state always...
2013-11-25 20:09:52 +01:00
75bd4dabbe
making ngons in boolean case now too
2013-11-25 20:09:52 +01:00
a926f7afe7
attempt to fix strange misbehavior of va_list / va_arg under windows by passing it as pointer to BM_op_vinitf instead of as value
2013-11-25 20:09:52 +01:00
7e0258de36
using bool variables (true, false) instead of int TRUE/FALSE now
2013-11-25 20:09:52 +01:00
0a62a7f52d
making real ngons in convert to object as well now
2013-11-25 20:09:52 +01:00
e62419008f
added depgraph callback for autorefresh
2013-11-25 20:09:52 +01:00
0bd32da174
crash fix and graphical error fix when rigidbody modifier is used with autorefresh, for now must disable autorefresh manually to make sim work again
2013-11-25 20:09:52 +01:00
91d018bb76
added autorefresh for explode modifier and particle selection mask (still crashing with rigidbody modifier attached, hmm)
2013-11-25 20:09:52 +01:00
ac6b1d923d
added solver iterations override and proportional solver iterations options
2013-11-25 20:09:52 +01:00
80f71bf21c
dont convert unnecessarily in clipping mode as well
2013-11-25 20:09:52 +01:00
f718c1cdbe
fixes for making explode "applyable" again, did not work anymore
2013-11-25 20:09:52 +01:00
6b7ab62c94
increased cache playback speed by atleast 10fps (from 14 to 24 in a 5000 shard testcube) by eliminating unnecessary bmesh conversions in explode modifier
2013-11-25 20:09:52 +01:00
70e1988a1c
some attempt to reduce memory usage, but no luck, hrm.
2013-11-25 20:09:52 +01:00
d76ead8e13
fix for null-pointer crash when attempting to create a cached derivedmesh from nonexistent bmesh
2013-11-25 20:09:52 +01:00
ab4ddd008f
free vertices_cached if present before re-allocating -> prevent memory leak
2013-11-25 20:09:52 +01:00
3be53ebfde
init explode modifier right after addition
2013-11-25 20:09:51 +01:00
1291b54616
changed visible mesh to derivedmesh, some performance gain, but still need to copy it in modifier
2013-11-25 20:09:51 +01:00
1de7452ba5
made parenting to empty default, it also cleans up the outliner a bit, so removed the 2nd operator button and the operator property again, was confusing
2013-11-25 20:09:51 +01:00
6f6bf095d6
added "convenience" support for blender destructability editor -> convert with parenting, usable together with addon in "Loose Parts" mode
2013-11-25 20:09:51 +01:00
a584f90abc
crash fix for bake to keyframes
2013-11-25 20:09:51 +01:00
b95df881af
partial crash fix for outer constraints, convert to objects takes mass / dist dependent thresholds into account now
2013-11-25 20:09:51 +01:00
353892bb14
better refresh manually after duplicating objects with modifiers
2013-11-25 20:09:51 +01:00
728db50b65
some (failing) attempts to fix boolean intersection (often has "inverted" results)
2013-11-25 20:09:51 +01:00
a4f7e80d76
remove gitignore files from commits
2013-11-25 20:09:51 +01:00
9c9e8808c2
making ngons and marking edges as sharp for object convert operator
2013-11-25 20:09:51 +01:00
29d8e09c4c
another attempt to fix baking, doesnt show negative side effects up to now
2013-11-25 20:09:51 +01:00
7d320da003
fix for baking regular rigidbodies, (hopefully)
2013-11-25 20:09:51 +01:00
48e8faeac9
hide the constraint empties after bake to keyframes, make sure you select the constraints as well prior to bake to keyframes or blender crashes afterwards (because of stray constraints not being removed properly)
2013-11-25 20:09:51 +01:00
5d4538ab29
fix for converting classic explode modifier to objects, objects had holes
2013-11-25 20:09:51 +01:00
169033992d
compile fixes due to merge
2013-11-25 20:09:51 +01:00
24cf767e15
convert to objects takes textures into account now and makes ngons
2013-11-25 20:09:50 +01:00
b2459b805c
crash fix for bake to keyframes and crash at quitting blender
2013-11-25 20:09:50 +01:00
a2d10e9848
throw away whole Rigidbodyworld and recreate when converting to objects to circumvent crashes
2013-11-25 20:09:50 +01:00
c2b0603e7a
attempt for selecting the shards, doesnt work for some reason... hmm
2013-11-25 20:09:50 +01:00
69db68e8eb
added experimental "convert to objects" operator, doesnt take textures into account yet
2013-11-25 20:09:50 +01:00
94a039ac52
fixed a memory leak; framemap was not deleted in some cases
2013-11-25 20:09:50 +01:00
e631dbb9af
crash fix for using baked data with compounds
2013-11-25 20:09:50 +01:00
030423e7e2
mark edges from faces with inner material as sharp (for usage with smooth shading and edgesplit modifier to hide the fracture cracks)
2013-11-25 20:09:50 +01:00
11d23a9f61
silently ignore refresh requests when not on startframe now, otherwise internally (bullet userpointers) get freed but not nulled which can lead to crashes
2013-11-25 20:09:50 +01:00
99e70a6faf
fix: clusters did not work with booleans
2013-11-25 20:09:50 +01:00
3c1701d498
activate collision between intact/destroyed compounds when compound shape is chosen
2013-11-25 20:09:50 +01:00
869ad992de
use normal breaking threshold with cluster size 1 (means no clustering at all)
2013-11-25 20:09:50 +01:00
e90872ca24
fix (attempt) for cluster refreshing, clusters fall apart without this unexpectedly
2013-11-25 20:09:50 +01:00
6886a42d7f
added cluster size and cluster percentage in explode modifier, and a new inner-cluster threshold in rigidbody modifier, removed map delay and emit continously options (they were misleading)
2013-11-25 20:09:49 +01:00
0f21491fa2
apply clustering with "Map Delay" to rigidbody modifier as well, by comparing particle indexes, need still a threshold value entry for "inside" the clusters
2013-11-25 20:09:49 +01:00
298b8a25e9
compile fix
2013-11-25 20:09:49 +01:00
3a838c01f6
crash fix for compound shape and making particle animation work again
2013-11-25 20:09:49 +01:00
506edfefb9
modifiers need to say whether they depend on normals, update due to changes in solidify modifier and normal calculation
2013-11-25 20:09:49 +01:00
90892008bd
crash fix for compound shape
2013-11-25 20:09:49 +01:00
c262e138e6
crash fix when moving object interactively and only one object is in list (did not fall)
2013-11-25 20:09:49 +01:00
90b777c18a
crash fix after merge, NULL seems to be invalid here now
2013-11-25 20:09:49 +01:00
4d60d54fa8
compile fixes
2013-11-25 20:09:49 +01:00
ce044b6740
crash fix (hopefully) for NULL cache_offset_map
2013-11-25 20:09:49 +01:00
776da90407
recenter fix (again) car roof was clipped away and refresh logic fix, hopefully
2013-11-25 20:09:49 +01:00
2857a137f5
crash fix for uninitialized modifiers
2013-11-25 20:09:49 +01:00
070162b490
make compounds of different objects collide with each other
2013-11-25 20:09:49 +01:00
85351b8bd8
fix for unwanted rigidbody settings reset (with modifiers) when simulation is recalculated
2013-11-25 20:09:49 +01:00
5eb9a24efa
do not construct modifiers automatically after loading, can cause crashes in case of important related objects not loaded yet, but need to refresh manually each time after loading
2013-11-25 20:09:49 +01:00
c99f531ae9
object recenter fix, need to refresh to correct wrong translation of object in case of changing the origin
2013-11-25 20:09:48 +01:00
31eabfc221
copying rigidbody objects before modifiers now, in case of rigidbody modifiers changes should be taken into account
2013-11-25 20:09:48 +01:00
afdd86826e
fixes for crash after loading file with classic explode and rigidbody and fix for memory leak
2013-11-25 20:09:48 +01:00
b208c6730d
using classical explode retains its shapes in rigidbody modfier, only centroids seem not completely correct yet
2013-11-25 20:09:48 +01:00
3a3fa959b9
fix attempt for corrupt Memory blocks with cache_index_map / cache_offset_map
2013-11-25 20:09:48 +01:00
79934f6bdc
refresh on modifiers works over a whole selection now
2013-11-25 20:09:48 +01:00
b7aed3b37f
crash fix for duplicating objects with explo and rigidbody modifier
2013-11-25 20:09:48 +01:00
b91192d454
long faces support, part 2, still have double faces
2013-11-25 20:09:48 +01:00
ddac6fbea1
hmm, there is a bug in MOD_rigidbody.c but fixing it causes worse behavior, so keeping it for now
2013-11-25 20:09:48 +01:00
f5f1515fe9
first step of adding "long face" support
2013-11-25 20:09:48 +01:00
947653bbf3
added option to enable/disable self collision of constrained objects, does not affect compounds yet (led to strange results there)
2013-11-25 20:09:48 +01:00
fa1ac8c040
keep using neighborhood info with VERTS target if explomodifier is available, need this for correct wood bar, compounds wont really work with scaled objects yet.
2013-11-25 20:09:48 +01:00
4af38f7067
dont use neighborhood info for boolean any more, use bounds center for convex hull compounds without constraints
2013-11-25 20:09:48 +01:00
0854457667
some fix for scaled objects, cell grid was not aligned with object
2013-11-25 20:09:48 +01:00
ecc278fe46
further attempt to get scaling with compounds correctly working, still no luck, hrm.
2013-11-25 20:09:47 +01:00
17c81aac12
partial fix for using compounds on scaled objects, but not solved fully yet
2013-11-25 20:09:47 +01:00
87d693e112
fix for non-compound case, was not working with baking anymore
2013-11-25 20:09:47 +01:00
ed619166da
small fix against possible corrupt end block (reallocating NULL pointer)
2013-11-25 20:09:47 +01:00
e3ff45781c
baking with compounds should work now, finally...
2013-11-25 20:09:47 +01:00
007e2507c3
baking almost fixed...
2013-11-25 20:09:47 +01:00
da2014727e
little progress only, breaking in baked mode, but some rigidbodies or so still missing
2013-11-25 20:09:47 +01:00
8cc646b531
stupid baking does not work after save and load yet... means compounds wont disintegrate visually, hrm.
2013-11-25 20:09:47 +01:00
53db50a9b4
damn baking errors, not fully solved yet...
2013-11-25 20:09:47 +01:00
4bb76122d2
missing some properties to copy
2013-11-25 20:09:47 +01:00
4977e05c53
not using old cell neighborhood anymore in case of compound usage
2013-11-25 20:09:47 +01:00
3563f48435
bmesh asserts do not occur anymore, yay !
2013-11-25 20:09:47 +01:00
77e8608d73
small fix: use_experimental did invalidate cache, which is nonsense in this case
2013-11-25 20:09:47 +01:00
d3736eefd6
fix for explo and rigidbody modifier combination: simple fractured cube did not fall any more
2013-11-25 20:09:47 +01:00
3c89a23c2b
crash fix for missing particlesystem and changes being made to explo modifier while rigidbodymodifier is enabled too
2013-11-25 20:09:47 +01:00
a1b1750253
partial fix for bmesh asserts, still got a lot of them, need to investigate further
2013-11-25 20:09:46 +01:00
06a30364b8
rigidbody modifier gui cleanup
2013-11-25 20:09:46 +01:00
61977f80cb
fix for windows crash, tried to write at freed location, gcc must have "optimized" that out
2013-11-25 20:09:46 +01:00
04cdf953dd
small hack for reducing clipping time and hopefully a fix for windows crashes...
2013-11-25 20:09:46 +01:00
b08b930a8b
accelerated clipping by 50 % total, and it does increase less then linear for more cells now
2013-11-25 20:09:46 +01:00
ba1c830df1
auto-recenter should work now
2013-11-25 20:09:46 +01:00
c960f7eb89
accelerated clipping by approximately 30%(in a smaller testfile), not so much but its noticeable
2013-11-25 20:09:46 +01:00
4e8c7adeb3
windows crash fix (hopefully) for removing cells (was a warning in linux only)
2013-11-25 20:09:46 +01:00
94b265a2e2
increased voronoi container size, sometimes it is too small (when bbox is too small!!)
2013-11-25 20:09:46 +01:00
9bbfc0623e
attempt for acceleration of clipping, failed due to incorrectness (holes appear), and was not so much faster at all
2013-11-25 20:09:46 +01:00
df92812fdc
hole problem solved by 98 % or so, only 2 wrong triangles at whole car !!
2013-11-25 20:09:46 +01:00
4c21dd4e6f
hole problem seems to be solved, need more tests still
2013-11-25 20:09:46 +01:00
8cafbff1c2
creating hole filling shapes separately from mesh
2013-11-25 20:09:46 +01:00
e0eaff4a78
successful test with clipping and car
2013-11-25 20:09:46 +01:00
2e377fb40d
hole problem almost solved, need to deal with a special case still (wrong vert selected..)
2013-11-25 20:09:46 +01:00
cbb385043a
clipping works mostly, mesh has some leftover holes, hmm
2013-11-25 20:09:45 +01:00
d9d6d13f39
first steps towards mesh clipping
2013-11-25 20:09:45 +01:00
4f41011f66
fix for compound creation, was throwing unnecessary error there
2013-11-25 20:09:45 +01:00
2901a846ee
fix for wrong compound rotation
2013-11-25 20:09:45 +01:00
b79c97163d
fix for crash while changing contact dist, changing back collision condition
2013-11-25 20:09:45 +01:00
a42e2efb3b
improved refresh logic, can do updates with rigidbody constraint refresh mostly, which is called automatically on value changes as well
2013-11-25 20:09:45 +01:00
eade7e9baa
small collision tweak for compounds (no implosions)
2013-11-25 20:09:45 +01:00
0e0cc39079
added compound shapes and disabled collision between compound/compound and compound/shard, reduces the "explosions"
2013-11-25 20:09:45 +01:00
3babd5a0f0
windows NAN fix, better do this elsewhere...
2013-11-25 20:09:45 +01:00
05c4b50d1d
cache should work now mostly, but still need full refresh to do it properly, hmm, maybe reset the frame data...
2013-11-25 20:09:45 +01:00
c54e7bfd54
compound sim need still refresh constraints, cache works only partially because compound parents disappear from simulation (better deactivate them only or so)
2013-11-25 20:09:45 +01:00
b996b71df2
compound needs some work still, but becomes usable step by step
2013-11-25 20:09:45 +01:00
d6d0931d91
still working on proper compound / constraint cooperation
2013-11-25 20:09:44 +01:00
085975ad4a
compound basic principle working, but very uncomfortable to control still, needs to be rebuilt once broken correctly
2013-11-25 20:09:44 +01:00
a6d3d775b0
first attempt for cell based simulation, not very good yet, needs improvement
2013-11-25 20:09:44 +01:00
019d927188
fix for last commit, still accelerating but correctly now
2013-11-25 20:09:44 +01:00
068ee02ed8
accelerated the check for existing constraints
2013-11-25 20:09:44 +01:00
13d5400054
added separate constraint update operator (only updating constraints) for quicker workflow
2013-11-25 20:09:44 +01:00
be39771bc7
opticall separation of values which need refresh and which dont
2013-11-25 20:09:44 +01:00
53515ddec4
changes for cell calculation, but this mode does not really work, still (just in for testing purposes)
2013-11-25 20:09:44 +01:00
7cc1fe1f45
added cell/centroid based approach again, delivers only the most necessary constraints in good time
2013-11-25 20:09:44 +01:00
c57a476494
added new cellbased search, performance not so ok...
2013-11-25 20:09:44 +01:00
0137ee3038
calculation fix for cell/meshisland assignment
2013-11-25 20:09:44 +01:00
801ab516c0
attempt for cellbased search, but loss of performance instead of gain, hrm.
2013-11-25 20:09:44 +01:00
4cbc15449f
breking threshold 0 means undestructible now
2013-11-25 20:09:44 +01:00
11132108b9
added time printouts in seconds
2013-11-25 20:09:44 +01:00
72a46c10c0
fix for 0 limit and prop checked, was creating 0 constraints instead of "all"
2013-11-25 20:09:44 +01:00
972a73b316
added proportional limit and proportional distance for reducing number of neighborhood lookups in dense areas with many small parts
2013-11-25 20:09:43 +01:00
6adf68d8b5
expose bullet activation state and use it to deactivate both constraint partners in case of one is deactivated (avoids objects jittering around)
2013-11-25 20:09:43 +01:00
b399d9ce6c
reset cache on moving objects and reenable all constraints
2013-11-25 20:09:43 +01:00
da029a6d97
fix for: canceling transforms with rigidbody modifier, was not done properly before
2013-11-25 20:09:43 +01:00
787a49d4fc
ensure updateability of noise (when it changes)
2013-11-25 20:09:43 +01:00
a29cf33e61
yes! baking fixed finally now, need to rebake once to include a noisemap, which will be applied instead of generating new noise
2013-11-25 20:09:43 +01:00
ec9d5a45a2
added 3 more breakup options: breaking percentage, breaking angle and breaking distance
2013-11-25 20:09:43 +01:00
d482007dfd
fix mass and centroid calculation for 1 vertex objects
2013-11-25 20:09:43 +01:00
408f931dd9
fix for separation method, did not work correctly if an unsuccessful halve occurred
2013-11-25 20:09:43 +01:00
1eb3d85e13
fix for crash when deleting objects with modifier (and cache is valid)
2013-11-25 20:09:43 +01:00
a5363ff015
fix for crash at object deletion when cache is valid
2013-11-25 20:09:43 +01:00
7e7b4708f3
sim startup time with applied array modifiers (on 20x20x20 test cube) reduced, removed unnecessary bmesh conversions
2013-11-25 20:09:43 +01:00
aa11c52611
fixed baking (to earlier state, with old errors, but works again), added mass calculation again was omitted testwise (long sim startup time)
2013-11-25 20:09:43 +01:00
999441106f
pointcache and crash fix
2013-11-25 20:09:43 +01:00
3ce0957f1b
cache index lookup speedup, WARNING, buggy
2013-11-25 20:09:42 +01:00
d4b41cf4a6
now properly deleted objects in open scenes as well, there were remainders in depsgraph causing crashes after incomplete delete
2013-11-25 20:09:42 +01:00
3b18a17010
added threshold and solver iterations, but its all still crash prone (when exchanging objects after simulation, DAG_tag updates makes this visible, probably object is STILL not properly deleted...
2013-11-25 20:09:42 +01:00
8fdc3b10d5
rotation and scale was not taken into account, fixed that
2013-11-25 20:09:42 +01:00
26c2fd49f5
further attempts to restore recent functionality of modifiers
2013-11-25 20:09:42 +01:00
db8a69f076
fracture works sorta, but cleaning up own mess in new run not. Very hard to get rid of objects actually.
2013-11-25 20:09:42 +01:00
512598da0a
first steps to make operators from modifiers
2013-11-25 20:09:42 +01:00
e467249f35
hrm, fix for volume calculation and mass setting
2013-11-25 20:09:42 +01:00
0af63c9859
add a test for 0 length in volume calculation and set a minimum mass for 0 mass active objects
2013-11-25 20:09:42 +01:00
7a7d7165d2
do not abort at 0 verts, its too early, potential constraints are skipped
2013-11-25 20:09:42 +01:00
1713964d69
abort with 0 shared verts
2013-11-25 20:09:42 +01:00
13644afe9a
fix for vertexbased constraint lookup: bboxtest continues loop instead of breaking it, and atleast 1 vertex is enough now for a constraint
2013-11-25 20:09:42 +01:00
1c4106ada2
fix for crash with missing particle texture (and no fracture mesh available)
2013-11-25 20:09:42 +01:00
d9a39262c4
added old constraint code (vertex distances) again, maybe it turns out to be useful in some cases
2013-11-25 20:09:42 +01:00
6803ed3265
forgot to add function to header
2013-11-25 20:09:42 +01:00
1deafe9d6d
added dist dependent Threshold, but does it really help ?
2013-11-25 20:09:41 +01:00
ab004e58ee
fix for crash applying/deleting explo modifier with rigidbody modifier below
2013-11-25 20:09:41 +01:00
26edda3db4
changed physics mesh from bmesh to derived mesh, reduces memory usage
2013-11-25 20:09:41 +01:00
030ce80a73
changed select linked walker method from island to shell, works on non manifolds too
2013-11-25 20:09:41 +01:00
f09d82a541
some fix for bigger undividable islands
2013-11-25 20:09:41 +01:00
501785846d
regular explode modifier and rigidbody should not crash anymore
2013-11-25 20:09:41 +01:00
c060f042dc
another fix for missed unvisited seed vertices and check if island is dividable
2013-11-25 20:09:41 +01:00
4dd4479970
Halving approach fixed now, still very fast compared to before
2013-11-25 20:09:41 +01:00
51fad3521a
Halving Approach successfully implemented, very fast and correct now
2013-11-25 20:09:41 +01:00
b4eb9fe87d
first attempt of halving method, fast but still incorrect
2013-11-25 20:09:41 +01:00
b649feaf59
mainly performance optimization attempts and some cleanup
2013-11-25 20:09:41 +01:00
ed6726c9f3
automerge quick fix
2013-11-25 20:09:41 +01:00
6a35f695ef
performance fix, if array and subsurf modifiers before rigidbody were in a certain sequence, performance was extremely bad due to incorrect mesh_separate_tagged function
2013-11-25 20:09:41 +01:00
76620e8d53
crash fix for cache_offset_map (needed to nullify)
2013-11-25 20:09:41 +01:00
460bfa85dd
oddly, in rigidbody.c not everywhere MEM_ functions were used, fixed that due to odd crash
2013-11-25 20:09:40 +01:00
5090b47a03
fixes to allow other constraint types and (mostly) correct outer constraints again
2013-11-25 20:09:40 +01:00
37aa3b1d0c
cache_offset_map, store offset instead of calculating, but only 1fps speed gain, hrm
2013-11-25 20:09:40 +01:00
1ba6e997f5
memory leaks fixed
2013-11-25 20:09:40 +01:00
4b71477299
automerge fix applied again (was not working any more)
2013-11-25 20:09:40 +01:00
eb1fce1cd1
attempt for fixing bake error, unfortunately no luck yet
2013-11-25 20:09:40 +01:00
dc388537ab
some stabilization (refreshing modifiers crashed before) but still error with baked data and memory leak
2013-11-25 20:09:40 +01:00
3151004efe
seems to run faster now, but still have a big memory leak
2013-11-25 20:09:40 +01:00
9875537458
further work at speedup, automerge needs to be tackled still
2013-11-25 20:09:40 +01:00
d52a57ee9d
partial success with speedup attempt, but automerge still slow and wrong
2013-11-25 20:09:40 +01:00
36c17c46fe
minor correctional fixes, enable automerge workaround again
2013-11-25 20:09:40 +01:00
edbe775ebe
some attempts to increase performance, only a bit faster now
2013-11-25 20:09:40 +01:00
d03b5110bb
first attempt to increase performance: disable storage of fracture results, this costs more performance instead improving it, and added a boundbox test for constraints calculation (but often those intersect each other, so not much performance gain, also need to fix for not touching islands which possibly should act as fixed too (using higher contact distance)
2013-11-25 20:09:40 +01:00
4335d31689
merge related compile fix
2013-11-25 20:09:39 +01:00
0ffa93618f
correction: calculate only (many) fixed constraints faster, the other outer constraint types connect to 1 shard basically and work incorrectly if calculation stops at 0 shared vertices.
2013-11-25 20:09:39 +01:00
4cce73db0f
small performance plus when building constraints, stop when 0 shared vertices occur (because meshislands are sorted by distance, kdtree)
2013-11-25 20:09:39 +01:00
665ae32809
adapt change from BMesh Operator "recalc face normals", removed some printouts
2013-11-25 20:09:39 +01:00
0d36d920aa
merge related fixes
2013-11-25 20:09:39 +01:00
e69f1e80f5
can move constrained objects now during sim, will be autorefreshed next time, a bit more overall stability, but especially with constraint groups still bullet assertions possible when moving objects
2013-11-25 20:09:39 +01:00
c83727f844
some minor cleanup
2013-11-25 20:09:39 +01:00
71106384d7
a bit more stabilization for outer constraints, but cache shows still unexpected behavior
2013-11-25 20:09:39 +01:00
5787989733
disable auto-refresh in rigidbody modifier (can be very slow, but ... always remember to hit refresh before starting the sim now !)
2013-11-25 20:09:39 +01:00
ee239cce8f
fix for scrubbing around in timeline while cache is not full yet -> did reshape too often (at saving, not at loading) accidentally
2013-11-25 20:09:39 +01:00
d6ae5785b7
a bit code cleanup
2013-11-25 20:09:39 +01:00
5f6659b35e
re-introduce Group Contact Distance (has effect for fixed type only) fix for changing passive to active unexpectedly
2013-11-25 20:09:39 +01:00
bccb1971ab
allow explode/voronoi modifer usage of previous modifier data
2013-11-25 20:09:39 +01:00
f77608aca2
fix for outer constraints, should work more reliably now
2013-11-25 20:09:39 +01:00
db73e4e4da
closed some memory leaks
2013-11-25 20:09:39 +01:00
fe0dbf7ea2
crash fix for using customdata like e.g. textures, need manual refresh after load !
2013-11-25 20:09:38 +01:00
36933e4bc2
compile fixes related to merge
2013-11-25 20:09:38 +01:00
6f8fa4182e
fix for ownVertices, extraParticles (noise and coordinate correction)
2013-11-25 20:09:38 +01:00
ebf21db092
small fix for crash with outer constraints between more than 2 objects (after duplicating object with modifier)
2013-11-25 20:09:38 +01:00
a68f7159f9
added more constraint types for outer (and inner) constraints and outer constraint location (still subject to change)
2013-11-25 20:09:38 +01:00
5372591d0f
additional test whether modifier is active (and not only there) when running rigidbody sim
2013-11-25 20:09:38 +01:00
60d80857d3
crash fix for selecting own verts on default cube
2013-11-25 20:09:38 +01:00
2ec4973d69
crash fix for constraint groups in conjunction with automerge
2013-11-25 20:09:38 +01:00
b76ab4e343
crash fix for loading files with constraint group enabled
2013-11-25 20:09:38 +01:00
a9f33f51d7
merge related compile fixes
2013-11-25 20:09:38 +01:00
9c20a46f5a
small tweak for automerge
2013-11-25 20:09:38 +01:00
8f86353b88
storing vertco now, crash fix for adding new rigidbody modifier, attempt to fix glitch when simulation is interrupted and continued before cache is full (everything gets reset->why ?)
2013-11-25 20:09:38 +01:00
5e48a020d5
copying object with modifiers active should not crash anymore now
2013-11-25 20:09:38 +01:00
78a0670728
crash fixes for saving and loading, some tweaks for automerge
2013-11-25 20:09:38 +01:00
5242899aad
added automerge distance, the whole automerge still needs tweaking, not reliable enough yet
2013-11-25 20:09:37 +01:00
093f437356
crash fixes for running sim / saving / undo after applying modifier
2013-11-25 20:09:37 +01:00
cba006d52e
missed some null pointer checks
2013-11-25 20:09:37 +01:00
9ac7ac04ac
4th attempt, memory leaks eliminated
2013-11-25 20:09:37 +01:00
92928c0b00
3rd attempt, saving /loading working now, need to test still with customdata and undo
2013-11-25 20:09:37 +01:00
cd345412c8
second attempt for storing fracture result, its incorrect and slower than regenerating, so deactivated as well, but might be usable as reference later
2013-11-25 20:09:37 +01:00
add28fe4ce
first attempt for storing fracture results, deactivated for now
2013-11-25 20:09:37 +01:00
7ce7f8a453
added null test for meshisland again, workaround when removing mesh islands and cache data is still there (would crash otherwise)
2013-11-25 20:09:37 +01:00
c8ad1ba65a
added limited dissolve, crash fix when less constraints than expected
2013-11-25 20:09:37 +01:00
ba6e6a932d
improved version of automerge, taking constraints into account
2013-11-25 20:09:37 +01:00
1f34dfef18
automerging inner geometry if object has not been hit, works for very low threshold only (settable via group contact property) and for now globally only, its possibly easier to fake an intact rigidbody with traceable settings or cycles nodes
2013-11-25 20:09:37 +01:00
3391e7a84c
additional NULL check (but sometimes that area isnt NULL, just FREE, need still to investigate)
2013-11-25 20:09:37 +01:00
8711e3c6d8
allow modifier settings to be copied (when duplicating objects)
2013-11-25 20:09:37 +01:00
73f0b2d22d
some code cleanup
2013-11-25 20:09:37 +01:00
3359d02d12
calling updateCell now in each case->evade corner case for one frame lag
2013-11-25 20:09:36 +01:00
964bdd434a
catch possible NULL pointers
2013-11-25 20:09:36 +01:00
41fc551a86
fix for frame-lag when using kinematic fractured objects
2013-11-25 20:09:36 +01:00
46e81cf749
some code cleanup
2013-11-25 20:09:36 +01:00
0ce1f2b886
properly syncing shards now with RNA rigidbody settings of object, should allow correct animation now
2013-11-25 20:09:36 +01:00
194816da67
added (internally) a collision callback, allows partial activation of fractured deactivated objects
2013-11-25 20:09:36 +01:00
2ceb96f479
attempt for testing for group slave (deactivated in code)
2013-11-25 20:09:36 +01:00
02573fe35d
-option for mass dependent threshold (constraint with max mass gets set threshold, the others are relative to that mass) -attempt for automating the refresh process (needs manual refreshes still now, even more)
2013-11-25 20:09:36 +01:00
7dcc5e692a
some stabilization attempts for constraint groups, but still crashy and not intuitive enough
2013-11-25 20:09:36 +01:00
9212bd6832
compile fix (hopefully, at least here it works)
2013-11-25 20:09:36 +01:00
816e67e537
added group breaking threshold and group contact distance, now evalulating each modifiers settings in group constraints when overriding
2013-11-25 20:09:36 +01:00
91bba9bcbb
added feature: Can connect multiple fractured rigidbody objects together automatically, fixed constraint for now only. To Use add another fractured object into constraint group of "parent" object (where others will be attached to)
2013-11-25 20:09:36 +01:00
31248db13c
forgot to free some memory blocks
2013-11-25 20:09:36 +01:00
89aa38094c
fixed wrong calculation and memory handling of point clouds, which led to often crashes. made explode a single modifier (removed copy), added outliner icon for rigidbody modifier
2013-11-25 20:09:35 +01:00
313adc270d
fixing attempt for crash when using no pointsource and boolean intersection, change how noise is applied (memory access)
2013-11-25 20:09:35 +01:00
f2ec6d41ca
added noise / percentage for pointsource, replaced child options by a group selection, made only one breaking threshold, removal of unused options, rename of Use Rigidbody, added refresh operator for explode voronoi mode (behavior still a bit inconsistent)
2013-11-25 20:09:35 +01:00
1a83942915
support smooth shards (if atleast one original object face is smooth), but looks bad still
2013-11-25 20:09:35 +01:00
c97f0437ad
added some null checks, a bit cleanup
2013-11-25 20:09:35 +01:00
4a464602f9
calculating shard mass at creation/change, coordinate calculation fixes with own verts and greasepencil
2013-11-25 20:09:35 +01:00
433126d856
removing invalid faces in (very small area and less than 3 verts) in explode modifier (geometry fix)
2013-11-25 20:09:35 +01:00
8d89c7d8be
small correction for constraints, atleast 3 shared vertices are needed to build a constraint fixes for incorrect meshes with radial point clouds step 1 (still non-manifold edges/faces)
2013-11-25 20:09:35 +01:00
083cc275fd
ignore symlinks
2013-11-25 20:09:35 +01:00
c7d6fded16
child vertex wrong coordinate fix, but still problems with radial pointclouds (triangles miss, tessface fails ?)
2013-11-25 20:09:35 +01:00
fbe4d474ea
make constraints optional, its very slow to set them up between many shards
2013-11-25 20:09:35 +01:00
ec8cacf7ae
correction for cluster calculation
2013-11-25 20:09:35 +01:00
e9c1b187ce
its possible to set inner and outer breaking threshold now for shard constraints
2013-11-25 20:09:35 +01:00
80c81856dd
inner constraints work now basically, but need to have user interface to define strengths yet.
2013-11-25 20:09:34 +01:00
48663dd9df
first steps with inner constraints, but moving the object when we have cached frames crashes bullet
2013-11-25 20:09:34 +01:00
d162008d5d
small cleanup
2013-11-25 20:09:34 +01:00
3375afa3fe
using polygons instead of tessfaces for voronoi cells now, but still faces miss
2013-11-25 20:09:34 +01:00
9439e57fc4
attempt for fixing missing faces problem (due to bm->dm->bm conversion ?)
2013-11-25 20:09:34 +01:00
80b6e52c09
fix for freeing NULL pointer, fix for visual errors with kinematic objects and interactive rotation and wrong mass calculation for shards
2013-11-25 20:09:34 +01:00
d635f222a1
correctly initializing ob->imat before using it, fixes bug where object was positioned at camera after render
2013-11-25 20:09:34 +01:00
29a64d71f2
scaling problem should be fixed now
2013-11-25 20:09:34 +01:00
d5e87fc445
fix for uneven scaling (mesh was distorted at collision before)
2013-11-25 20:09:34 +01:00
3d0795b044
attempt for getting scale properly to work, no success yet
2013-11-25 20:09:34 +01:00
4f47f0fc68
partial fix for scaling problem, but scaled fractured objects still lead to display errors, workaround: apply scale before fracture
2013-11-25 20:09:34 +01:00
4ad2bd8c0e
fix for animation "jump" bug when rigidbody modifier is on animated object
2013-11-25 20:09:34 +01:00
ad7e1c124b
attempt for fix for MeshIsland Null Pointer in Pointcache (index calculation fix)
2013-11-25 20:09:34 +01:00
ca216d9e7e
crash fix when selected no point source, fix for using child vertices
2013-11-25 20:09:34 +01:00
1d195e6362
Fix NULL checks when dealing with pointcache
...
This needs to be cleaned up further but should be at least correct.
2013-11-25 20:09:34 +01:00
94eeeb9c4b
Style and warning fixes
2013-11-25 20:09:33 +01:00
4ff02f7fc3
there should be only one rigidbody modifier per object, so it must not be copyable as well
2013-11-25 20:09:33 +01:00
862d098125
small fix, attempted to free some NULL pointers before.
2013-11-25 20:09:33 +01:00
055c5c91a7
ok, values are passed through now at once to shards at change (tested with kinematic)
2013-11-25 20:09:33 +01:00
2e1de279d3
first attempt to apply settings to each shard and calculate mass, maybe better move this into modifier/refresh ?
2013-11-25 20:09:33 +01:00
91eea4a3de
fixed a rotation bug (each shard was rotated differently) and a small memory leak, although rotating objects during simulation (by hand) yields still an error (objects breaks apart at once)
2013-11-25 20:09:33 +01:00
54517891d8
fix for wrong pos calculation after moving objects
2013-11-25 20:09:33 +01:00
cd806601fb
added refresh operator for rigidbody modifier to recalculate rigidbodies when mesh changes
2013-11-25 20:09:33 +01:00
3f2658bb99
calculating centers of mass now correctly for shards
2013-11-25 20:09:33 +01:00
d5aea12969
small fix for grabbing and moving objects during the sim
2013-11-25 20:09:33 +01:00
7b53f675bd
this fix resets the simulation on esc properly
2013-11-25 20:09:33 +01:00
e39fc2c8ab
added new rigidbody modifier doing the mesh island handling, instead of explode modifier
2013-11-25 20:09:33 +01:00
e81c5cec0a
crash fix (wrong cache mapping) and white space cleanup (tabs only)
2013-11-25 20:09:33 +01:00
c593241cc7
fixes for: moving the object during rigidbody sim (no crash anymore) and one piece was always stuck in the air (wrong calculation in cache)
2013-11-25 20:09:32 +01:00
c8a4744ca5
some cache fixes to allow multiple (duplicated) rigidbodies with modifiers on them
2013-11-25 20:09:32 +01:00
e509a65885
added use rigidbody as new option, some smaller fixes
2013-11-25 20:09:32 +01:00
5516678889
can run simulation backwards now too (update mesh from cache, but still sometimes crashes)
2013-11-25 20:09:32 +01:00
1a77e9f316
very basic collision works, but unreliably for now (sometime cache crashes, center of mass still wrong
2013-11-25 20:09:32 +01:00
a89196af1b
sorta optical feedback (but massively wrong)
2013-11-25 20:09:32 +01:00
776cd94b77
crash fixes, wip
2013-11-25 20:09:32 +01:00
c0ab26b8a7
attempts for integrating fractured objects into rigidbody sim, still wrong and incomplete
2013-11-25 20:09:32 +01:00
427783a3ac
adapting rigidbody sim to accept mesh shards too (in progress)
2013-11-25 20:09:32 +01:00
0508f7be8d
small build and link fixes
2013-11-25 20:09:32 +01:00
fbea1a566c
update and merge code branches - voronoi modifier
2013-11-25 20:09:32 +01:00
e48616d08a
test commit
2013-11-25 20:09:32 +01:00