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
2015-09-15Fix T46093: Thumbnails/previews of materials/textures not displaying in ↵Bastien Montagne
Blender filebrowser when only one thread is available. Using the global scheduler here is not a really good idea - `filelist_cache_previewf()` is not a short task that run once, but it's a loop that keeps cheking for work in a TODO queue. This means it won't quickly allow other tasks to start, so it should not be in the global scheduler. In fact, asynchronous tasks (that is, tasks that will live for quite a bit of time, and often sleep a lot) should never use global scheduler, they would steal computing resources from heavy-duty, short-time living ones - and possibly even completely stall threaded tasks (if all worker threads are executing long-life tasks...). We could probably even completely bypass the scheduler/task thing here (and directly use threads), but it does not have that much of an over-head, and still offers easy handling of threading stuff...
2015-09-15Fix T46113: Color picker erratic outside 0-1 rangeCampbell Barton
2015-09-14Fix T46099: snapping failed on objects with some NULL-dimension in their bbox.Bastien Montagne
Added a helper that ensures a bbox has some non-NULL dimension along all its axes. Also, fixed some (rather unlikely) NULL dereference cases (though it should not in this context, `BKE_object_boundbox_get()` can return NULL).
2015-09-14Fix T45699: own regression w/ looptri updateCampbell Barton
Baking was still checking tessface in parts.
2015-09-14Revert "Fix crash in opengl render caused..."Campbell Barton
This reverts commit d64b1221c67846bb954855a19c8dd093b83adc8e. While this prevents the crash, offscreen renders still aren't working right.
2015-09-14Fix crash in opengl render caused by gfx being blacklisted forJoe Eagar
non-power-of-2 texture support. Note that all I did was pass the correct width/height into glReadPixels; the result may not be the same as if non2 textures were enabled.
2015-09-13Cleanup: spellingCampbell Barton
2015-09-13Fix T46091: Video Sequencer rewrite *.png to _.pngBastien Montagne
Own mistake when adding filename safety check...
2015-09-11File Bookmarks: use volume label on Windows, and set name of recent entriesBastien Montagne
from system/user bookmarks' name if possible. Volume label on Windows was request from T46083, makes Blender more in line with 'common' filebrowsing on this OS. And now, we automatically set name of recent entries from the bookmarks, if path can be found there, more consistent too from user PoV.
2015-09-11Fix T45755: Bad NLA text alignmentCampbell Barton
2015-09-10Fix T46070: Content of folders with a .blend extension aren't listed until ↵Bastien Montagne
filtering is disabled. Own stupid mistake somewhere during filebrowser revamp...
2015-09-10UI: increase threshold for color-band selectCampbell Barton
Was quite small, especially with hi-dpi displays. Increase to 50 since theres no benefit to not select when clicking.
2015-09-10Show correct syntax for id-propertiesCampbell Barton
2015-09-10Correction to last commitJulian Eisel
Did a fullscreen check in a function that should only be called in fullscreen mode. Not a big deal, but bad API practice.
2015-09-10Fix T46069: Crash when saving a render with non-fullscreen file editorJulian Eisel
IMAGE_OT_save_as assumes that active area is an Image Editor and the logic that should return to image editor after saving didn't run after fullscreen was manually exited.
2015-09-10Fix T44344: paint bleed fails in perspective viewCampbell Barton
2015-09-09Fix broken logic in new FileBrowser caching of entries.Bastien Montagne
We were still using main borwser's FileDirEntryArr to own memory of entries currently in cache. That was OK for common caching operation, but if was not released when clearing cache! Nothing dramatic, since that was cleared too, but less often, so e.g. by changing sorting options you could pile up more and more no-more-used entries there... Anyway, there is no reason to do that, much more sound and clean to keep everything cache-related in dedicated FileDirEntryCache struct. This means main borwser's FileDirEntryArr is now always expected to not store any actual entry! Note: this can probably be cleaned up a bit more, but would wait after 2.76 for this!
2015-09-09Fix T45880: Texture Paint mask random angle failsCampbell Barton
Random mask failed when the paint brush didn't have random angle enabled too.
2015-09-09Fix T45839 : Regression - Multi-layer image issues when using non-standard namesDalai Felinto
This was introduced in the fix for T44336 . The code is now what it should have been in the first place at the time of multiview commit. ImageUser->passtype is being removed in favour of bringing ImageUser->pass back. Reviewers: sergey Differential Revision: https://developer.blender.org/D1504
2015-09-09Fix (unreported) crash with undo/outliner and drivers.Bastien Montagne
To reproduce the crash: * Add some shapekeys to default cube. * Add at least on driver (can be default empty one) to a shapekey value. * **Make this driver visible in Outliner**. * Delete all shapekeys. * Undo. * Crash. Root of the issue is outliner reading code in `blo_lib_link_screen_restore()`, which would try to `restore_pointer_by_name()` for all `TreeStoreElement->id` pointers. Thing is, those id pointers are not always IDs, they can be animdata, sequence, RNA struct/property... That's really not so great design, but also has reasons like size of the struct, we have to live with it. So now: * TreeStoreElement->type defines are braught back into DNA. * There we also define a `TSE_IS_REAL_ID` macro to check whether a given TreeStoreElement actually stores an ID pointer or not. * And in Outliner read code we only try to retore pointers by name for actual ID ones, and set the others to default NULL value. Also, added clear comment to TSE types that do not store a real ID pointer!
2015-09-09Fix (unreported) Outliner letting you edit path of indirect linked lib shown ↵Bastien Montagne
at 'first level'. From Gooseberry team request indirect libs were also added at root of 'BlendFile' Outliner view, but that allowed edition of their path, which is useless...
2015-09-08Error in last commitCampbell Barton
Had warnings disabled.
2015-09-08Fix T46003: Scale w/ script ignores axis-alignCampbell Barton
2015-09-08typo in last commitCampbell Barton
2015-09-08Fix T45771: Walk mode fails on OSXCampbell Barton
2015-09-06Add icon for incremental grid snappingJulian Eisel
As decided in D910, we use a new icon for incremental grid snapping and use its old one for absolute grid snapping. This also touches the library_data_broken icon .dat files, seems some changes on its .svg entry landed in upstream without updating the other icon files (already noticed this when committing icon for auto-offset, but removed it from commit - leaving it in now to avoid further confusion) Icon by @plyczkowski (made a tiny edit as it looked a bit blurry in 16x16). Thx!
2015-09-05Fix T45944: Ctrl+Wheel to cycle values failes in toolshelfJulian Eisel
Now, ctrl+wheel for cycling tabs is passed to hovered button if it supports cycling values (RNA menus, color/row/number/slider buttons, list boxes) This might feel a bit glitchy if ctrl+wheel is used to cycle tabs and in newly opened tab, a button with cycling support is under the mouse, which will get mouse input from this point on instead of region. Think this is still better than old behavior.
2015-09-05Depsgraph: Don't use legacy function when building without legacy depsgraphSergey Sharybin
2015-09-04Fix T46010: Bone offset between Rest Pose and Edit mode.Bastien Montagne
That one was hairy... To summarize: * We were setting Bone.head/tail (aka **local** rest location of bone) from EditBone data, using **EditBone's parent computed armature space**. * We use those local head/tail to define Bone's restpose (in `BKE_armature_where_is_bone()`), using **Bone's parent armature space** (aka parent's arm_mat). * Because of bone's roll nightmare, the two above parent's matrices will often not be the same. In an ideal world, this should not affect locations (head/tail), but in real world of float it does - noticeably, in some extreme cases. So! This commit cleans up things a bit (`fix_bonelist_roll()` was already doing much more than just fixing roll mess, has been renamed to `armature_finalize_restpose()`), and ensures we do use (final!) parent's arm_mat local space to compute children's local head/tail as well. This allows us to avoid too much imprecision here. Checked the patch also with a complete Victor's rig from Gooseberry, seems to have no nasty side effects - fingers crossed!
2015-09-04Armature: Cheap edit-to-object mode speedup.Bastien Montagne
`fix_bonelist_roll()` is already recursive, and was calling recursive `BKE_armature_where_is_bone()` twice! Changed `BKE_armature_where_is_bone()` to controll whether we recurse over children or not. With full Victor's rig, we gain 16% in `ED_armature_from_edit()` (from 31ms to 26ms). With a dummy test-case 100 bones chain, we gain 80% in `ED_armature_from_edit()` (from 1.25ms to 0.25ms). Not crucial, but still worth it. ;)
2015-09-04Partial revert of warning cleanupCampbell Barton
These warnings are false-positives
2015-09-04Quiet warningsJulian Eisel
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
2015-09-03View-Selected: use custom bones boundboxCampbell Barton
Support using custom pose-bone transform and object when calculating view bounds.
2015-09-02Fix T45995: Auto-set preview range sets superfluous end key.Bastien Montagne
get_keyframe_extents() would add an extra frame in case of mono-key fcurves in selected set... Now do the 'not same start/end frames' check later, and also use floor/ceil instead of round (we want to start at frame 3 if first key is at frame 3.8, reversed-same goes for end frame).
2015-09-02Fix T45991: Transfer Weight tool UI is inconsistent and crashes blender.Bastien Montagne
Since data transfer when called from this tool has reversed behavior (it transfers **towards** active object, as previous tool), we have to also reverse source/destination layers selection options. Also fix 'reverse' option being saved, otherwise calling regular operator after 'transfer weights' would stay in reverse mode, ugly!
2015-09-02Cleanup: styleCampbell Barton
2015-09-02Fix snapping edit-gpencil to edit-meshCampbell Barton
Reported in T45978 Was checking mesh selection state.
2015-09-01Fix T45978: Ruler ignores new edit-mesh dataCampbell Barton
2015-09-01Fix T45974: Bones fail to snap to vertsCampbell Barton
Was an issue with individual-origins + snap
2015-09-01Fix uninitialized normal var w/ objects snappingCampbell Barton
2015-09-01Fix projection painting normal culling operating on individualAntony Riakiotakis
triangles. This made the normal-related artifacts of projection painting much more apparent. Now we do culling based on whole polygons. Pure backface culling still uses individual triangles.
2015-09-01Fix T45825: Macro redo disable options incorrectlyCampbell Barton
A non repeatable operator would disable editing options for all operators after it.
2015-08-31Fix T45258, impossible to select brush when removing it from 2dAntony Riakiotakis
painting. Also system added a brush every time it found no paint brush in the system which is not what we would want. Solution: * Brush panel stays visible always, regardless of whether there is a brush or not. * We search for first available brush when we find no brush in paint struct instead of always generating a new one. * Generating and searching for a brush take a mode argument now. Needed some refactoring to users of BKE_paint_init as well. * Did some style cleanups for paint mode enums. Patch is big but it's mostly argument refactoring.
2015-08-31Math Lib: Add closest_to_plane helper functionsCampbell Barton
- closest_to_plane3 (for float3 planes) - closest_to_plane*_normalized_v3 (for unit length planes) Use when the plane is known to be unit length
2015-08-30missing NULL pointer checkCampbell Barton
2015-08-29Add some more missing ID types to TREESTORE_ID_TYPE...Bastien Montagne
2015-08-28Fix UI font drawing getting width w/o kerningCampbell Barton
2015-08-27Fix T45702: Editing smoke while viewport render and blender bugSergey Sharybin
Issue was caused by blender internal accessing data from DNA during rendering. There's no simple solution to make stuff thread safe, so for now simply restart rendering on frame update.
2015-08-27Fix T45920: Loopcut w/ shrinkwrap crashCampbell Barton
2015-08-27Fix T43826: Sculpt grab anchored failsCampbell Barton
Regression caused by GSOC2013 merge f745564