Bastien Montagne
fbd28d375a
Fix missing non-ID nodetrees in ID relationships built from library_query.c
...
This shall fix both existing code (bpy mapping, and local/lib usages
checks), and new Main->relations generation.
2017-01-30 22:33:20 +01:00
Bastien Montagne
4443bad30a
Add optional, free-after-use usages mapping of IDs to Main.
...
The new MainIDRelations stores two mappings, one from ID users to ID
used, the other vice-versa.
That data is assumed to be short-living runtime, code creating it is
responsible to clear it asap. It will be much useful in places where we
handle relations between IDs for a lot of them at once.
Note: This commit is not fully functional, that is, the infamous, ugly,
PoS non-ID nodetrees will not be handled correctly when building relations.
Fix needed here is a bit noisy, so will be done in next own commit.
2017-01-30 22:33:20 +01:00
Germano Cavalcante
997a210b08
Fix T49632: Grease pencil in "Edit Strokes" mode: Snap tool did not snap points to active object
...
A simple confusion between enums: ~SNAP_NOT_ACTIVE~
2017-01-30 18:30:19 -03:00
Kévin Dietrich
4580ace4c1
Alembic/CacheFile: fix crash de-referencing NULL pointer.
2017-01-30 10:46:24 +01:00
Sergey Sharybin
62f2c44ffb
Cleanup: Unused function and and variables in snap code
...
Please doublecheck ED_transform_snap_object_project_ray_ex() is really
valid, it's weird to have extra arguments here unused.
2017-01-30 09:26:33 +01:00
Germano Cavalcante
505ff16dbf
Snap System: BVH: ignore AABBs behind ray
...
This provides a slight improvement in performance in specific cases, such as when the observer is inside a high poly object and executes snap to edge or vertex
2017-01-30 02:49:41 -03:00
Germano Cavalcante
318ee2e8c1
Fix unreported bug: parameter ray_start repeated
...
The bug would only be seen in terms of performance
2017-01-30 02:26:00 -03:00
Germano Cavalcante
167ab03f36
Solve compilation error: Field has incomplete type 'enum eViewProj'
...
Error reported by @tomjpsun
Patch D2491
2017-01-30 02:19:18 -03:00
Germano Cavalcante
6c23a1b8b9
Remove BKE_boundbox_ray_hit_check
...
Remove `BKE_boundbox_ray_hit_check` since it is no longer being used and can be easily replaced by `isect_ray_aabb_v3_simple`
2017-01-29 14:19:58 -03:00
Germano Cavalcante
cf6ca226fa
New math_geom function isect_ray_aabb_v3_simple
...
The new `isect_ray_aabb_v3_simple` function replaces the `BKE_boundbox_ray_hit_check` and can be used in BVHTree Root (first AABB). So it is much more efficient.
2017-01-29 13:56:58 -03:00
Germano Cavalcante
dead79a16a
Rename func set_SnapData to snap_data_set
...
Don't use CamelCase in functions and try to keep area affected first, and action last, in names
2017-01-29 13:13:14 -03:00
Germano Cavalcante
88b0b22914
fix T50486: Don't always do the ray_start_correction in the ortho view
...
You need to make sure that ray_start is really far away, because even in the Orthografic view, in some cases, the ray can start inside the object
2017-01-29 12:26:15 -03:00
Germano Cavalcante
cd596fa1c7
Remove struct PreDefProject and store all immutable parameters within the new struct SnapData
...
In order to simplify the reading of these functions, the parameters: `snap_to`, `mval`, `ray_start`, `ray_dir`, `view_proj` and `depth_range` are now stored in the struct `SnapData`
2017-01-29 12:07:14 -03:00
Kévin Dietrich
d6f965b99c
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-01-29 16:00:25 +01:00
raa
15b253c082
Fix blurry icons
2017-01-29 17:21:57 +03:00
Gaia Clary
ba116c8e9c
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode
2017-01-28 22:10:20 +01:00
Gaia Clary
c64c901535
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode
2017-01-28 21:51:18 +01:00
Bastien Montagne
e4e1900012
Fix (IRC reported) DataTransfer modifier affecting base mesh in some cases.
...
Checking only whether mverts is same as base mesh one is not enough in
all cases, some modifiers (deform ones) can only generate new mvert
data, while keeping others from original mesh.
Now checking both mvert or medge, hopefully this will be enough to catch
all problematic cases this time.
Thanks @gaia for finding that problem. :)
2017-01-27 19:27:07 +01:00
Bastien Montagne
11abb13483
Fix T50534, Part II: warn user when DataTransfer mod affects custom normals.
...
Custom normals need Autosmooth setting to be enabled, always!
2017-01-27 19:07:29 +01:00
Bastien Montagne
fb2f95c91a
Fix T50534: Part I, cleanup loop normals generated during modifier stack evaluation.
...
Those could stay around, and be displayed in 3DView even when autosmooth
was disabled (but would not be 'active').
2017-01-27 19:07:29 +01:00
Germano Cavalcante
436f1e3345
Snap Functions: Remove the use of the function 'BLI_bvhtree_find_nearest_to_ray' in transform_snap_object
...
Although the "BLI_bvhtree_find_nearest_to_ray" function is more practical than the generic "BLI_bvhtree_walk_dfs", it does not work to snap in perspective view. This makes it necessary to add "ifs" and functions that make the code difficult to understand
patch: D2474
2017-01-27 13:02:05 -03:00
Dalai Felinto
84b18162cf
Fixup for rBac58a7fa (HSV doversion)
...
We are not bumping file version, but we cannot have the doversion code running twice.
In this particular case it was crashing files, since we were setting node->storage to NULL, and later on accessing it.
2017-01-27 11:24:23 +01:00
Sergey Sharybin
67bef6bcf6
Depsgraph: Fix typo in assert
2017-01-26 17:22:54 +01:00
Sergey Sharybin
fd69ba2255
Depsgraph: Link from material to object shading
...
This is a ground work for the upcoming changes in Blender 2.8 branch
where we need to do special actions to reconstruct shaders when
material changes.
2017-01-26 17:01:37 +01:00
Sergey Sharybin
c441eb27ea
Depsgraph: Add relation from node tree to material it's coming from
2017-01-26 16:49:24 +01:00
Sergey Sharybin
331f721725
Depsgraph: Remove owner argument from relations builder as well
...
The idea was to link something to a parent, but the point is:
we must not pass owner deep and then have any parent-type-related
logic implemented in the "children".
2017-01-26 16:36:37 +01:00
IRIE Shinsuke
f14e1da5aa
Fix (unreported) crash when file browser attempts to show preview of some defective font
...
Confirmed with the Wine's bundled fonts.
2017-01-27 00:36:24 +09:00
Sergey Sharybin
3c3c52a74b
Depsgraph: Remove owner node argument which was simply passed around
2017-01-26 16:29:09 +01:00
Sergey Sharybin
ac58a7fa19
Compositor: Make HSV node inputs a real sockets
...
This is much more flexible solution which will allow doing some
more procedural features.
Reviewers: brecht, dfelinto, mont29
Reviewed By: mont29
Subscribers: Severin
Differential Revision: https://developer.blender.org/D2403
2017-01-26 15:20:13 +01:00
Dalai Felinto
18cf3e1a38
Fix unfreed memory after cleaning render layers
...
The freestyle data was never freed when removing a renderlayer.
```
blender -b --factory-startup --debug-memory --python-expr "import bpy;bpy.ops.scene.render_layer_add();bpy.context.scene.render.layers.active_index=0;bpy.ops.scene.render_layer_remove()"
```
2017-01-26 11:58:51 +01:00
Kévin Dietrich
01527197aa
Alembic: fix compile error on Linux.
2017-01-26 06:18:07 +01:00
Kévin Dietrich
b91edd61d0
Fix T50287: Blender crashes when open a blend that contains an alembic
...
file.
Missed in rB62a2ed97b.
2017-01-26 06:16:33 +01:00
Dalai Felinto
e5482f986c
Fix T50115: stereoscopic video file memory leak
2017-01-25 15:16:36 +01:00
Sergey Sharybin
e29a6f739d
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-01-25 12:30:29 +01:00
Sergey Sharybin
e4de6e87e1
Depsgraph: Do ID tag outside of build_scene
...
Otherwise it was possible to get ID tags cleared in the middle
of DEG construction when there are set scenes used.
2017-01-25 12:28:27 +01:00
Aaron Carlisle
4cbfaa6f3f
Revert "UI: Add missing menu item"
...
This reverts commit 1ad842d432 .
2017-01-25 01:33:10 -05:00
Aaron Carlisle
1ad842d432
UI: Add missing menu item
2017-01-25 01:00:28 -05:00
Julian Eisel
8a6c689f30
Fix T50386: Crash when spawning pie menus
...
D2455 by @raa, thanks!
2017-01-24 21:35:38 +01:00
Sergey Sharybin
605695de61
Depsgraph: Fix duplicated operation node when two objects are sharing same armature
2017-01-24 17:15:39 +01:00
Sergey Sharybin
b6ccba9241
Fix typo in comment
2017-01-24 14:56:35 +01:00
Antonio Vazquez
520afa2962
GPencil: Fix unreported animation data missing when change palette name
...
When a palette was renamed, the animation data was not changed.
This fix is related to commit 196520fe7d
2017-01-24 09:15:41 +01:00
Aaron Carlisle
e5d8c2a67f
Use new manual URL
2017-01-23 19:10:37 -05:00
Sergey Sharybin
39577403d3
Fix compilation error with legacy depsgraph disabled
2017-01-23 18:08:41 +01:00
Sergey Sharybin
7b8810b01a
Silence strict compiler warnings
...
Similar thing to other areas where we mix Blender's char with OpenGL API.
2017-01-23 11:46:02 +01:00
Joshua Leung
d2382f782e
Fix T49527: Blender stalls when changing armature ghosting range with stepsize = 0
...
A big thanks to Steffen Mortensen (stifan) for finding the root cause of this bug!
2017-01-22 02:55:10 +13:00
Bastien Montagne
82187a58f5
Fix own mistake in rB051526da6279, confusing off_t with ptrdiff_t.
2017-01-20 21:57:48 +01:00
Bastien Montagne
475d536f72
Fix minor glitches in GP code.
...
Reported by coverity scan.
2017-01-20 18:46:06 +01:00
Bastien Montagne
a97ec403c2
Fix/cleanup stupid check on array of char being non-NULL pointer...
...
Reported by coverity scan.
2017-01-20 18:43:42 +01:00
Bastien Montagne
21e1282265
Fix float buffer of tracking image accessed outside of check that it has been correctly allocated.
...
Reported by coverity scan.
2017-01-20 18:41:56 +01:00
Sergey Sharybin
094d916c60
Fix compilation error with strict flags
2017-01-20 17:47:09 +01:00