Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-02Fix Cycles OpenCL not taking Extend and Clip extension types into account.Thomas Dinges
(See T48720).
2016-07-01"Fix" crash when deleting linked object which has indirect usages.Bastien Montagne
This is in fact very hairy situation here... Objects are only refcounted by scenes, any other usage is 'free', which means once all object instanciations are gone Blender considers it can delete it. There is a trap here though: indirect usages. Typically, we should never modify linked data (because it is essencially useless, changes would be ignored and ost on next reload or even undo/redo). This means indirect usages are not affected by default 'safe' remapping/unlinking. For unlinking preceeding deletion however, this is not acceptable - we are likely to end with a zero-user ID (aka deletable one) which is still actually used by other linked data. Solution choosen here is double: I) From 'user-space' (i.e. outliner, operators...), we check for cases where deleting datablocks should not be allowed (indirect data or indirectly used data), and abort (with report) if needed. II) From 'lower' level (BKE_library_remap and RNA), we also unlink from linked data, which makes actual deletion possible and safe. Note that with previous behavior (2.77 one), linked object would be deleted, including from linked data - but then, once file is saved and reloaded, indirect usage would link back the deleted object, without any instanciation in scene, which made it somehow virtual and unreachable... With new behavior, this is no more possible, but on the other hand it means that in situations of dependency cycles (two linked objects using each other), linked objects become impossible to delete (from user space). Not sure what's best here, behavior with those corner cases of library linking is very poorly defined... :(
2016-07-01Outliner: pass operator's reports to all operation callbacks.Bastien Montagne
Also define single callback func typedef, cleaner this way! Note: maybe we want to do that for the other callbacks too (data, etc.), but will be enough for now.
2016-07-01Fix T48666: Segfault on boolean operation when exiting edit mode of ↵Sergey Sharybin
instanced operand This is quite tricky situation which combined: - Boolean modifier which accesses other object's derived mesh (in fact, it's nothing to do with boolean modifier, any other modifier which uses other's DM will have same bug). - Dependency cycles in the scene which is rather russian-roulette from the cycle solver point of view. - Multiple instanced objects used as boolean operand. With all this things combined boolean modifier was accessing operand's derived mesh which was referencing data from Mesh datablock. The issue is that those references are becoming invalid after EDBM_mesh_load(). This function already had code to make sure object itself does not end up with dangling pointers from derived mesh. Make it now so no possible instanced objects are left with dangling pointers. And who said it's a good idea to reference something from derived mesh..
2016-07-01UI: take zoom into account w/ curves widgetAlexander Gavrilov
The Curves widget has buttons to zoom in on the curve. However the click detection code doesn't take it into account, and at full zoom in click on curve is detected very far from the actual visible curve. Change it to compare the position to the actual line segments in the UI coordinate space, i.e. with curve zoom applied.
2016-07-01Add wait cursor toggling dyntopoCampbell Barton
2016-07-01UI: move dyntopo button to headerCampbell Barton
This looks a bit odd, but being able to see if dyntopo is enabled when the panel is collapsed is handy.
2016-07-01Sculpt: skip normal calculation entering dyntopoCampbell Barton
When no triangulation runs we can skip re-calculating normals.
2016-07-01BGE: Display Hardware infos only in standalone.Ulysse Martin
This patch moves the PrintHardwareInfo() function in standalone only, not in embedded. Why? Because you can need this infos for debugging purpose in "compiled" blender files but it was boring to have it displayed each time you launched embedded. So you can have this infos when you click standalone or when you run your executable app from a console. Reviewers: moguri, kupoman, panzergame.
2016-07-01Enable dyntopo re-entering sculpt modeCampbell Barton
2016-07-01BMesh: make toolflags optionalCampbell Barton
Saves 8 bytes per vert/edge/face. Gives overall ~20-25% memory saving for dyntopo sculpting and modifiers that use BMesh.
2016-06-30Fix T48757: Broken in D1120 normal bakingAlexander Romanov
2016-06-30Fix T48728, part 2: Vertex colors not shown in texture modeSergey Sharybin
2016-06-30Transform Snap: Optimize edge-snap using BVH treeGermano Cavalcante
changes in BLI_kdopbvh: - `BLI_bvhtree_find_nearest_to_ray` now takes is_ray_normalized and scale argument. - `BLI_bvhtree_find_nearest_to_ray_angle` has been added (use for perspective view). changes in BLI_bvhutils: - `bvhtree_from_editmesh_edges_ex` was added. changes in math_geom: - `dist_squared_ray_to_seg_v3` was added. other changes: - `do_ray_start_correction` is no longer necessary to snap to verts. - the way in which the test of depth was done before is being simulated in callbacks.
2016-06-30CMake: list buildinfo.h as buildinfo.cmake's outputCampbell Barton
Keep the fake header to ensure we always run.
2016-06-30Correct fix for MSVCCampbell Barton
2016-06-29Fix bplayer (c)Bastien Montagne
2016-06-29Cleanup: use constCampbell Barton
2016-06-29Cleanup: spelling, indentationCampbell Barton
2016-06-29Fix T48695: Slowdown w/ edit-mesh & shrinkwrapGermano Cavalcante
0b5a0d84 caused regression since edit-mesh BVH wasn't cached, each shrink-wrap modifier created its own BVH.
2016-06-29Correction to previous commit: Only skip colors for texture paintSergey Sharybin
This way we avoid regression of sculpt mode shading. Hopefully now it's all fine.
2016-06-29Cleanup: endian testsCampbell Barton
2016-06-29Fix T48728: Vertex colors not shown in texture modeSergey Sharybin
Regression caused by own changes to make texture paint more efficient from workflow point of view. Now the idea is to use vertex color outside of paint mode, so we don't break any compatibility here.
2016-06-29Cleanup: warningCampbell Barton
2016-06-29BMesh Intersect: use flags to keep track of vertsCampbell Barton
For simple cases bitmasks were OK, but didnt work for vert/edge, vert/edge tests. Tag verts instead, makes logic easier to follow and gives minor speedup.
2016-06-29UI: prevent softrange from becoming nanCampbell Barton
Quiets assert
2016-06-29Fix T48755: Crash UV unwrappingCampbell Barton
2016-06-28Usual i18n/UI messages cleanup & fixes.Bastien Montagne
2016-06-28[msvc2015/OpenEXR] Linker hackery is no longer required in vc2015Martijn Berger
Reviewers: juicyfruit Reviewed By: juicyfruit Differential Revision: https://developer.blender.org/D1892
2016-06-28Fix T48732: New GGX breaks OpenCL kernelSergey Sharybin
Make sure we don't perform any implicit address space conversion. A bit annoying, but less intrusive approaches (like using temp private variable in .cl kernel) do not work correct here. Using generic address space will help from code side here, but will be somewhat slower due to extra things happening as far as i know.
2016-06-28Cleanup: use bool for writefileCampbell Barton
2016-06-28writefile: replace most struct lookups /w constantsCampbell Barton
Removes many hash lookups per file-save and undo-step.
2016-06-28Cleanup: code-styleCampbell Barton
Other changes here planned which touch many lines, so run cleanup first.
2016-06-28Fix T48753: VSE must restart for international fontsCampbell Barton
2016-06-28GHOST/X11: Hotplug support for xinputCampbell Barton
Allows to plug/unplug different tablets while Blender is running. Also fixes crash unplugging tablet while Blender runs (T48750).
2016-06-28RNA: resolve assert w/ no languages availableCampbell Barton
2016-06-28RNA: perform reverse search on operatorsCampbell Barton
In most the last added operator is being handles.
2016-06-28Cleanup: Python importsCampbell Barton
2016-06-28Fix MSVC error, co_return now a reserved wordCampbell Barton
D2073 by @LazyDodo
2016-06-27Fix (unreported) wrong ID type check in Text editor's ID remap callback.Bastien Montagne
2016-06-27Bendy Bones Instability Fix - Second AttemptJoshua Leung
So the error seems to be in cubic_tangent_factor_circle_v3(), which was introduced with D2001. I've tweaked the most obvious culprit here - the epsilon factor. It used to be 10^-7, but I've reduced it down to 10^-5 now, and it's looking a lot more stable now :) --------- BTW, about the derivation of the magic 0.390464 factor I briefly subbed back as a workaround for this bug, see: http://www.whizkidtech.redprince.net/bezier/circle/
2016-06-27Bendy Bones: Temporary workaround for instability caused by D2001 when using ↵Joshua Leung
custom handle bones It's probably some numeric precision issue, but until we figure out exactly what's going wrong here, let's just revert back to the hardcoded value that was used here successfully for years without issues.
2016-06-27Fix T48740: User could remap indirect libdata usages from outliner.Bastien Montagne
Remapping indirect usage of IDs is forbidden from user space, this is calling for nice nightmare with libraries handling (and undo crash, among other things). Not sure why I was 'laxist' about indirect usage cases detection like that, for now just consider any ID used by another linked datablock as indirect usage case! Also, added some error/warning reports to Outliner's remap code.
2016-06-27FCurve Auto Colours: "XYZ to RGB" works for Quaternions too nowJoshua Leung
The "W" channel will get a yellowish colour (i.e. a blend between the X/R and Y/G axis colours), while the XYZ will behave as they do for other transforms.
2016-06-27Partial fix for T48734Joshua Leung
The create drivers operator should not use the "Transform Channel" variable type when driving one transform with another on the same object/bone. Otherwise, you end up with a situation which technically results in a bit of a pseudo-dependency cycle.
2016-06-27Code Cleanup: Use bools not shortsJoshua Leung
2016-06-27Ctrl-Shift-C: Made it easier to add constraints between bones in different ↵Joshua Leung
armatures The Ctrl-Shift-C operator to add constraints between a pair of selected items, for example, between two objects, or between two bones (in the same armature). This commit makes it possible to use this operator to add a constraint where the target is a bone from another object - e.g. to make a deform bone follow the control bone in another armature, or to make an object use a bone as a tracking target. Usage: 1) Ensure you are in Pose Mode, then select the bone to use as the target 2) Shift-Select the other object and/or the bone that's going to get the constraint 3) Ctrl-Shift-C
2016-06-27Fix (unreported) potential buffer overflow with BLO_library_path_explode() ↵Bastien Montagne
usage. Also added warning to func doc, let's try to avoid this in future (for until we pass string length systematically...).
2016-06-27Fix T48741: File browser back button doesn't work from inside Blend ↵Bastien Montagne
(library) file. Problem was in fact slightly wider, File space was nearly not taking into account library navigation case and its 'virtual' directoris, except in a few places. Add a wrapper around BLI_is_dir that also check for lib paths, and used it in ED_file_change_dir(), such that we now always check path is a valid directory - in the filebrowser context, not filesytem context. ;)
2016-06-27Cycles: Fix corner case of human readable number returning empty stringSergey Sharybin