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-06-26Cleanup: transform centerCampbell Barton
store global center in transform struct, some code was calculating all the time, this is useful to keep available.
2015-06-26Cleanup: transform aspectCampbell Barton
Transform code had duplicate aspect checking, now store aspect in TransInfo.aspect for reuse.
2015-05-07EdgeSlide: support for un-clamped slidingCampbell Barton
Functionality matches vertex slide.
2015-05-07EdgeSlide: use pairs for TransDataEdgeSlideVertCampbell Barton
no functional changes
2015-04-29Cleanup: headersCampbell Barton
2015-04-08Transform: use relative motion for vertex slideCampbell Barton
Vertex slide was using absolute mouse position unlike all other kinds of transform. also remove need for allocated 2d projections.
2015-03-19Fix T43989: Sequencer - Ctrl snapping a sequencer strip does not work if you ↵Bastien Montagne
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-02-16Vert/Edge Slide: better UV interpolationCampbell Barton
Ignore faces which the sliding vert is outside of.
2015-02-11UV Island support for vertex & edge slideCampbell Barton
This ensures slide with `Correct UVs` enabled, keeps UV's (any loop custom-data) contiguous. Adds 2 key functions `BM_vert_loop_groups_data_layer_create` and `BM_vert_loop_groups_data_layer_merge` They work by collecting matching loop custom-data around the vertices loop-fan, and merging the custom-data after edits are made. Thanks to @mont29 for review!
2015-02-08Initial vertex slide UV-correct supportCampbell Barton
Still need to adjust for contiguous UV's
2014-11-27Partial Fix T42652: Transform falloff for mesh islandsCampbell Barton
This doesn't currently do anything clever when a single vertex is shared by multiple islands (uses closest only).
2014-11-24Politically correct terrible consequencer changesAntony Riakiotakis
This patch includes the work done in the terrible consequencer branch that hasn't been merged to master minus a few controversial and WIP stuff, like strip parenting, new sequence data structs and cuddly widgets. What is included: * Strip extensions only when slipping. It can very easily be made an option but with a few strips with overlapping durations it makes view too crowded and difficult to make out. * Threaded waveform loading + code that restores waveforms on undo (not used though, since sound_load recreates everything. There's a patch for review D876) * Toggle to enable backdrop in the strip sequence editor * Toggle to easily turn on/off waveform display * Snapping during transform on sequence boundaries. Snapping to start or end of selection depends on position of mouse when invoking the operator * Snapping of timeline indicator in sequencer to strip boundaries. To use just press and hold ctrl while dragging. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D904
2014-10-02Code cleanup:Antony Riakiotakis
calc_manipulator_stats is only used in manipulator (and soon will only use the context for such queries)
2014-08-06Remove confusing word "faculative" from commentsNicholas Bishop
Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D711
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-07-09Fix T40991, mirrored armatures not restored properly when cancelling.Antony Riakiotakis
Issue here is that we force mirroring even if original armature is not mirrored. We could be smart and store only unselected mirrored bones here (since those will get restored from transdata), however not all properties were getting stored and restored; rolling bones still suffered from the bug for instance. To fix this we need to restore all properties that armature mirroring overrides. Transdata obviously does not offer a lot of space here, so I used TransInfo->customdata to store an array of initial parameters of the mirrored bones.
2014-07-06Fix T40548: After canceling, F-Curve handlers don't go back to original ↵Lukas Tönne
position. Handle vectors for the initial location were only stored when the handles are actually selected for transform. When only the master vertex is moved this can still affect the handles though, since they are constraint to one side of the master vertex. Now the handle data is stored regardless of whether handles are included in the transform, so on cancel their location is reset correctly as well.
2014-06-18Revert "Fix flickering when transform snapping in edit mode and cursor is"Antony Riakiotakis
Looks like the cleanest way to handle this is to no do bounding box collision for edit mode at all. But this is easy to enforce This reverts commit 7b5fe4f316234022a0ab761b694cd459ce98db2d. Conflicts: source/blender/editors/transform/transform_snap.c
2014-06-12Fix flickering when transform snapping in edit mode and cursor isAntony Riakiotakis
slightly outside the mesh. Reported by Thomas Beck on irc. Issue here is that the mesh bounding box changes as we are transforming the vertices. Solution is to collide against the initial bounding box. Unfortunately the snapping functions are made in a way that a lot of code needed to be tweaked here, but the change should be straightforward and harmless (famous last words, I know). Ideally we might want to even increase the size of the bounding box a little (as seen in screen space) to allow snapping even in cases where, cursor is slightly outside the bounding box, but since this is not so straightforward to do for all cases, at least for me, leaving this as a TODO.
2014-06-03Tweaks to bevel and crease transformSergey Sharybin
They were using INPUT_SPRING in a way which didn't allow it to easily redo the operator because INPUT_SPRING internally is stored as a ration between old value and new one and crease and bevel were converting this to value delta. Now made it special input type INPUT_SPRING_DELTA which is storing delta of the spring, meaning now values in the redo panel kind of makes sense -- they mean how much to add/remove to the crease/bevel weight. Expect to be no functional changes from interactive transform POV, just a bit more convenient to use redo panel.
2014-05-09Fix T36973: Active snapping fails for edges/facesCampbell Barton
also add snap-active support for armatures, pose & metas
2014-04-17Code cleanup: use boolsCampbell Barton
also rename BLI_omp_thread_count -> BLI_system_thread_count_omp
2014-04-16Code cleanup: use bools & const argsCampbell Barton
2014-03-30Code cleanup: de-duplicate cotangent weight function & add arg sizesCampbell Barton
2014-02-28Fix for transform setting T_CAMERACampbell Barton
This was only set when the camera was active, however non active cameras can be transformed too.
2014-02-28Revert editbone roll correction changes.Bastien Montagne
This reverts commit f72acc38d 65c5be967 eff6b385e 3fe487217
2014-02-27Transform: remove recently added ival2, use editbones temp dataCampbell Barton
2014-02-27Fix T38843: Bone parallel to world z axis flicking when scale in edit mode.Bastien Montagne
This commit hopefully fixes all glitches we had when bone was Z-aligned. Note that when you init a transform with a Z-aligned bone and change it to be non-Z-aligned, you will still get some brutal roll change, there is not much things we can do here afaik...
2014-02-17Revert 7142b970853f209f6c43319b7f862bcbdbea3728 (transform toggle node hiding)Campbell Barton
D187 was committed without review and later rejected by Brecht and myself.
2014-01-21Fix T38128: snapping to node border uses node centers.Lukas Tönne
This was caused by recent change to transform locations being changed to the upper-left corner of nodes (rBa857a6f).
2014-01-18Make it possible to hide/unhide a node during node transform operations.Monique Dewanchand
During drag the H key can be used to toggle the hide flag of the selected nodes. This makes it easier to 'attach' nodes to available links in narrow places.
2013-11-25Transform: old todo, removing an orientation now checks all screens.Campbell Barton
also fix for using uninitialized matrix when an out-of-range index is set for custom orientations.
2013-11-25Transform: internal changes for orientations calculations.Campbell Barton
- use (const char *) for the 'name' - use bool where possible. - remove unused return value for initTransInfo
2013-11-06True grid snapping for nodes: This snaps nodes to the actual background grid ↵Lukas Toenne
instead of using incremental offset (which is not useful for nodes). Increment snapping has been disabled for nodes to avoid confusion, grid snap is now the default as it seems to be the most wanted and easy to use mode. Absolute grid snapping happens in a somewhat generic function 'applyGridAbsolute', which could also be used for objects and other transforms later on. It is conceptually similar to the 'project' snapping option, in that it calculates a delta vector for each element on top of the overall transform, which places each node on the grid. Node transform now uses the top-left node corner for TransformData->loc. The transform center is still the average of node centers, so that scaling and rotation works nicely. snapGrid*** functions have been renamed to snapGridIncrement*** to distinguish better between incremental and absolute grid snapping.
2013-10-26spelling: use American spelling for canceledCampbell Barton
2013-10-23code cleanup: minor transform refactorCampbell Barton
redraw flag were mixing up types - int/char/bool, add enum type to use instead.
2013-10-23refactor transform.c - minor changesCampbell Barton
- use TREDRAW_HARD define - use apply prefix for transform callbacks. - make callbacks static.
2013-10-13improve warp transform so it can be used as a general bending tool too.Campbell Barton
2013-10-12transform - use 2d float's for the viewport center (allows for vector math ↵Campbell Barton
functions to be used more easily).
2013-09-17Fix for #36739: Delete new nodes added via the Add menu or toolbar if the ↵Lukas Toenne
subsequent transform operator is cancelled. This prevents ugly situations where nodes stick "under" the toolbar after clicking a wrong button. Works by adding a flag to transform operators "remove_on_cancel". This is currently only used for node transforms, the idea is that if set, the operator will remove the transformed elements when it is cancelled. It's not possible to do that in the original NODE_OT_add_node operator, because transform is modal and there is no way of reacting to a cancel outside of the transform itself (previous attempt used a macro operator, but that also doesn't work because subsequent operators don't get executed if the previous transform cancels).
2013-08-20fix [#36517] You can edit a texture space (Shift-T) of a linked meshCampbell Barton
also enable other errors to show up which were previously commented.
2013-08-16Merge plane track feature from tomato branchSergey Sharybin
This commit includes all the changes made for plane tracker in tomato branch. Movie clip editor changes: - Artist might create a plane track out of multiple point tracks which belongs to the same track (minimum amount of point tracks is 4, maximum is not actually limited). When new plane track is added, it's getting "tracked" across all point tracks, which makes it stick to the same plane point tracks belong to. - After plane track was added, it need to be manually adjusted in a way it covers feature one might to mask/replace. General transform tools (G, R, S) or sliding corners with a mouse could be sued for this. Plane corner which corresponds to left bottom image corner has got X/Y axis on it (red is for X axis, green for Y). - Re-adjusting plane corners makes plane to be "re-tracked" for the frames sequence between current frame and next and previous keyframes. - Kayframes might be removed from the plane, using Shit-X (Marker Delete) operator. However, currently manual re-adjustment or "re-track" trigger is needed. Compositor changes: - Added new node called Plane Track Deform. - User selects which plane track to use (for this he need to select movie clip datablock, object and track names). - Node gets an image input, which need to be warped into the plane. - Node outputs: * Input image warped into the plane. * Plane, rasterized to a mask. Masking changes: - Mask points might be parented to a plane track, which makes this point deforming in a way as if it belongs to the tracked plane. Some video tutorials are available: - Coder video: http://www.youtube.com/watch?v=vISEwqNHqe4 - Artist video: https://vimeo.com/71727578 This is mine and Keir's holiday code project :)
2013-07-24- add individual origin support for curves and improve the orientation ↵Campbell Barton
calculations for curve handles, - add support for using the active point's orientation. - add support for creating new custom orientations from curves. - fix error where only the last selected curve handle was taken into account for manipulator orientations.
2013-07-11fix for problem with edge slide where it would stop shapekey modifier from ↵Campbell Barton
being applied (because of added vertices), now, instead of making hidden copies of faces, the faces are copied into a temp bmesh. also remove a hash that was being created and not used (old code).
2013-07-10skip duplicating faces for edge slide unless its used, this causes update ↵Campbell Barton
problems for shape keys at the moment, Ill check on that but no need to run in most cases.
2013-06-25Fix #35767: transforming nodes in the node editor changed the wireframe colorBrecht Van Lommel
of the active object in the 3D view. This was due to sharing a global G.moving flag to indicate that transform is active, now it's only set per transform data type so different editors don't influence each other.
2013-06-20transform: 2d option for proportional editmode,Campbell Barton
Uses for view orientation for distance calculation, can give nicer results when you dont want twisting caused by changes in depth.
2013-06-20remove NULL checks for return values from EDBM_***_at_index calls.Campbell Barton
2013-05-28code cleanup: remove old/unused bmesh bevel transform mode, remove commented ↵Campbell Barton
character list UI widget and the members these used in 'G' global.
2013-05-12Fix for [#35238] Blender does not save custom orientations from "view"Bastien Montagne
Actually more a feature request... Now create orientations operator has an additional option, use_view, when this one is enabled it will use current view instead of active object to create the new space. Also made some cleanup (made some funcs static).