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
path: root/source
AgeCommit message (Collapse)Author
2017-03-11Fix text and icon positioning issue on high DPI, after recent changes in ↵Brecht Van Lommel
32c5f3d.
2017-03-11Breakdowner - Constrain Transform and AxisJoshua Leung
This commit adds new features to the breakdowner, giving animators more control over what gets interpolated by the breakdowner. Specifically: "Just as G R S let you move rotate scale, and then X Y Z let you do that in one desired axis, when using the Breakdower it would be great to be able to add GRS and XYZ to constrain what transform / axis is being breakdowned." As requested here: https://rightclickselect.com/p/animation/csbbbc/breakdowner-constrain-transform-and-axis Notes: * In addition to G/R/S, there's also B (Bendy Bone settings and C (custom properties) * Pressing G/R/S/B/C or X/Y/Z again will turn these constraints off again
2017-03-10rBa81ea408367abe2f33b351ff6dcc6b09170fd088 "object" -> "target"Germano Cavalcante
2017-03-10fix T50899: Even though the Shrinkwrap options hide the possibility of using ↵Germano Cavalcante
a non-mesh target, you can still circumvent this... Causing Crash
2017-03-10Correct glPixelTransfer functionCampbell Barton
2017-03-10Fix T50900: Text-Blocks created from "Edit Source" have zero users.Bastien Montagne
2017-03-10Fix useless allocation of edge_vectors in threaded case of loop split ↵Bastien Montagne
generation.
2017-03-10Cleanup: struct flags for select pickingCampbell Barton
2017-03-10Cleanup: rename drawObjectSelectCampbell Barton
After adding draw_object_select, noticed a similar name. Rename drawObjectSelect to draw_object_selected_outline.
2017-03-10Fix T47690: Connected PET w/ individual originsCampbell Barton
- Connectivity length was overwritten by distance to closest selected. - Vertices used the 'island' center of the closest vertex, even if it wasn't connected. Now optionally keep track of the original index of used as the closest connected distance. To support this needed to add optional support for islands of 1 vertex.
2017-03-10Fix T50904: Imprecise timeline frame selection using mouseJoshua Leung
The changes introduced in rB3e628eefa9f55fac7b0faaec4fd4392c2de6b20e made the non-subframe frame change behaviour less intuitive, by always truncating downwards, instead of rounding to the nearest frame instead. This made the UI a lot less forgiving of pointing precision errors (for example, as a result of hand shake, or using a tablet on a highres scren) This commit restores the old behaviour in this case only (subframe inspection isn't affected by these changes)
2017-03-093D View: x-ray support for depth pickingCampbell Barton
Selection loop would draw the selection ignoring xray. Now draw in a separate pass after clearing the depth buffer, as with regular drawing. Also disable depth sorting, caller can sort the hit-list by depth if needed.
2017-03-09Remove (ifdef) draw_documentation from text_draw.cDalai Felinto
This was no longer supported.
2017-03-093D View: wrap GPU_select cache callsCampbell Barton
Avoids including GPU_select and makes it more clear that the cache is needed for view3d_opengl_select calls. Also use typed enum for select mode.
2017-03-093D View: use cache for armature selectCampbell Barton
2017-03-083D View: new nethod of opengl selectionCampbell Barton
Intended to replace legacy GL_SELECT, without the limitations of sample queries which can't access depth information. This commit adds VIEW3D_SELECT_PICK_NEAREST and VIEW3D_SELECT_PICK_ALL which access the depth buffers to detect whats under the pointer, so initial selection is always the closest item. The performance of this method depends a lot on the OpenGL implementations glReadPixels. Since reading depth can be slow, buffers are cached for object picking so selecting re-uses depth data, performing 1 draw instead of 3 (for 24, 18, 10 px regions, picking with many items under the pointer). Occlusion queries draw twice when picking nearest, so worst case 6x draw calls per selection. Even with these improvements occlusion queries is faster on AMD hardware. Depth selection is disabled by default, toggle option under select method. May enable by default if this works well on different hardware. Reviewed as D2543
2017-03-08Fix T50849: Transparent background produces artifacts in this compositing setupSergey Sharybin
The issue was caused by sometimes negative color returned by the filter node. Seems to be caused by precision issues. Don't see any reason why we would want negative colors in output. Those only causing issues later on.
2017-03-08OpenGL Select: integer rect for passing regionCampbell Barton
2017-03-08Cleanup: replace short -> int for selection hitsCampbell Barton
2017-03-08Rename BLI_rct*_init_pt_size -> radiusCampbell Barton
2017-03-08Fix T50886: Blender crashes on renderSergey Sharybin
Was a mistake in one of the previous TLS commits. See comment in the pool_create to see some details why it was crashing.
2017-03-07Task scheduler: Add concept of suspended poolsSergey Sharybin
Suspended pools allows to push huge amount of initial tasks without any threading synchronization and hence overhead. This gives ~50% speedup of cached rigid body with file from T50027 and seems to have no negative affect in other scenes here.
2017-03-07Depsgraph: Remove workarounds from depsgraph for keeping threads aliveSergey Sharybin
This is something what should be done in the task scheduler instead with local thread queues so we handle this in a single place.
2017-03-07Task scheduler: Initial implementation of local tasks queuesSergey Sharybin
The idea is to allow some amount of tasks to be pushed from working thread to it's local queue, so we can acquire some work without doing whole mutex lock. This should allow us to remove some hacks from depsgraph which was added there to keep threads alive.
2017-03-07Task scheduler: Use real pthread's TLS to access active thread's dataSergey Sharybin
This allows us to avoid TLS stored in pool which gives us advantage of using pre-allocated tasks pool for the pools created from non-main thread. Even on systems with slow pthread TLS it should not be a problem because we access it once at a pool construction time. If we want to use this more often (for example, to get rid of push_from_thread) we'll have to do much more accurate benchmark.
2017-03-07Task scheduler: Refactor the way we store thread-spedific dataSergey Sharybin
Basically move all thread-specific data (currently it's only task memory pool) from a dedicated array of taskScheduler to TaskThread. This way we can add more thread-specific data in the future with less of a hassle.
2017-03-07Task scheduler: Remove per-pool threads limitSergey Sharybin
This feature was adding extra complexity to task scheduling which required yet extra variables to be worried about to be modified in atomic manner, which resulted in following issues: - More complex code to maintain, which increases risks of something going wrong when we modify the code. - Extra barriers and/or locks during task scheduling, which causes extra threading overhead. - Unable to use some other implementation (such as TBB) even for the comparison tests. Notes about other changes. There are two places where we really had to use that limit. One of them is the single threaded dependency graph. This will now construct a single-threaded scheduler at evaluation time. This shouldn't be a problem because it only happens when using debugging command line arguments and the code simply don't run in regular Blender operation. The code seems a bit duplicated here across old and new depsgraph, but think it's OK since the old depsgraph is already gone in 2.8 branch and i don't see where else we might want to use such a single-threaded scheduler. When/if we'll want to do so, we can move it to a centralized single-threaded scheduler in threads.c. OpenGL render was a bit more tricky to port, but basically we are using conditional variables to wait background thread to do all the job.
2017-03-07Fix typo in command line arg listAaron Carlisle
2017-03-07Once more T50565: Allow using planar constraints for scale manipulatorJulian Eisel
2017-03-06Rigid body: fix viewport not updating on properties change.Clément Foucault
2017-03-06Fix width calculation for split layoutsraa
2017-03-06Task scheduler: Cleanup, use BLI_assert() instead of assert()Sergey Sharybin
2017-03-06Surface Deform Modifier: Respect object transforms at bind timeLuca Rood
This slightly changes SDef behavior, by now respecting object transforms at bind time, thus not requiring the objects to be aligned in their respective local spaces, but instead using world space.
2017-03-06Multi-View: Map cursor coordinates to visual coordinatesJulian Eisel
When rendering multi-view in side-by-side or top-bottom mode, we squash the UI to half of its size and draw it twice on screen. That means the cursor coordinates used for UI interaction don't match what's visible on screen. This commit is a little event system hack (tm) to fix this. It has some small glitches with cursor grabbing, but nothing to bad. We'll also use it for viewport HMD support. D1350, thanks for the feedback @dfelinto!
2017-03-05BMesh: Add 'cut' separate mode for intersect toolCampbell Barton
It was only possible to separate all geometry from an intersection or none. Made this into an enum with a 3rd option to 'Cut', (now default) which keeps each side of the intersection separate without splitting faces in half.
2017-03-05Fix T50855: Intersect (knife) w/o separate doesn't selectCampbell Barton
2017-03-05BLI_rect: add init from point functionsCampbell Barton
Initialize a rectangle from point+size.
2017-03-04Fix T50838: Surface Deform DM use after free issueLuca Rood
Implementd fix suggested by @sergey in T50838.
2017-03-04Cleanup: expose struct for ED_view3d_mats_rv3d_*Campbell Barton
2017-03-03Fix own previous commit, sorry about that :(Bastien Montagne
2017-03-03Get rid of `BLI_task_pool_stop()`.Bastien Montagne
Comments said that function was supposed to 'stop worker threads', but it absolutely did not do anything like that, was merely wiping out TODO queue of tasks from given pool (kind of subset of what `BLI_task_pool_cancel()` does). Misleading, and currently useless, we can always add it back if we need it some day, but for now we try to simplify that area.
2017-03-03Fix ugly mistake in BLI_task - freeing while some tasks are still being ↵Bastien Montagne
processed. Freeing pool was calling `BLI_task_pool_stop()`, which only clears pool's tasks that are in TODO queue, whithout ensuring no more tasks from that pool are being processed in worker threads. This could lead to use-after-free random (and seldom) crashes. Now use instead `BLI_task_pool_cancel()`, which does waits for all tasks being processed to finish, before returning.
2017-03-03Update comment which was remained in an old placeSergey Sharybin
2017-03-03Cleanup: IndentationSergey Sharybin
2017-03-03Fix T50842: NLA Influence Curve draws out of bounds when it exceeds the 0-1 ↵Joshua Leung
range
2017-03-03Cleanup: GPU_select never took NULL rectCampbell Barton
2017-03-03Cleanup: redundant header, use const, short -> boolCampbell Barton
2017-03-03When creating texture/image in Texture Paint mode, both datablocks should ↵Bastien Montagne
get the same name The paint slot name was not the same as what is displayed on the texture properties panel. Instead, the slot type (e.g. "Diffuse Color") was used as the name. Patch by Suchaaver (@minifigmaster125) with minor changes from @mont29. Reviewers: mont29, sergey Maniphest Tasks: T50704 Differential Revision: https://developer.blender.org/D2523
2017-03-03Fix T49655: Reloading library breaks proxies.Bastien Montagne
Can't say enough how much I hate those proxies... their duality (sharing some aspects of both direct *and* indirect users) is a nightmare to handle. :(
2017-03-02Fix own stupid mistake in recent mesh 'split_faces' rework.Bastien Montagne
Was assigning new edge index to ml_prev->e, and then assigning ml_pre->e to orig_index...