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
2013-12-05User Interface: Ctrl+C over a menu copies the py commandCampbell Barton
also use bools rather then ints
2013-12-04Fix T37680: Texture image scale is not refreshingSergey Sharybin
2013-12-04Add alloca include for MSVCCampbell Barton
2013-12-04Fix T37690: UI does not immediatelly reflect new length of effect stripSergey Sharybin
2013-12-04User interface: internal change, collect panels to draw before drawing.Campbell Barton
avoids calling poll twice, in some cases
2013-12-04Fix UI bug with 'socket menus' (used e.g. by cycles' Material panels).Bastien Montagne
Also tweaked a bit how nodes with more than one socket available are drawn: * The node entry itself (a label) has no more any icon, so that it is aligned with the other single-socket nodes. * The sub-entries (i.e. node's sockets) are more clearly indented (using a blank icon). Details: Another case of bad internal UI_HAS_ICON flag erasing by brutally assigning an uneeded value to but->flag. Revealed by recent split of some button flags into but->drawflag. Thanks to Thomas Dinge for noting the issue.
2013-12-04Code Cleanup: correct fabsf/fabs/abs useCampbell Barton
2013-12-04Usual UI messages fixes & tweaks.Bastien Montagne
2013-12-03Cleanup: Internal degrees removal.Bastien Montagne
This patch changes most of the reamining degrees usage in internal code into radians. I let a few which I know off asside, for reasons explained below - and I'm not sure to have found out all of them. WARNING: this introduces forward incompatibility, which means files saved from this version won't open 100% correctly in previous versions (a few angle properties would use radians values as degrees...). Details: - Data: -- Lamp.spotsize: Game engine exposed this setting in degrees, to not break the API here I kept it as such (using getter/setter functions), still using radians internally. -- Mesh.smoothresh: Didn't touch to this one, as we will hopefully replace it completely by loop normals currently in dev. - Modifiers: -- EdgeSplitModifierData.split_angle, BevelModifierData.bevel_angle: Done. - Postprocessing: -- WipeVars.angle (sequencer's effect), NodeBokehImage.angle, NodeBoxMask.rotation, NodeEllipseMask.rotation: Done. - BGE: -- bConstraintActuator: Orientation type done (the minloc[0] & maxloc[0] cases). Did not touch to 'limit location' type, it can also limit rotation, but it exposes through RNA the same limit_min/limit_max, which hence can be either distance or angle values, depending on the mode. Will leave this to BGE team. -- bSoundActuator.cone_outer_angle_3d, bSoundActuator.cone_inner_angle_3d: Done (note I kept degrees in BGE itself, as it seems this is the expected value here...). -- bRadarSensor.angle: Done. Reviewers: brecht, campbellbarton, sergey, gaiaclary, dfelinto, moguri, jbakker, lukastoenne, howardt Reviewed By: brecht, campbellbarton, sergey, gaiaclary, moguri, jbakker, lukastoenne, howardt Thanks to all! Differential Revision: http://developer.blender.org/D59
2013-12-03Fix T37663: Black matcap when object located on a curveSergey Sharybin
Summary: Issue was caused by GLSL samplers not valid anymore after dupliobject was drawn into OpenGL displist. Solution for now is to not use displist for active object when matcap is used. The same issue exists for regular GLSL viewport draw, and this was solved by disabling diplist if draw_glsl_material returns truth for current dupliobject. Reviewers: brecht Reviewed By: brecht Maniphest Tasks: T37663 Differential Revision: http://developer.blender.org/D70
2013-12-03Fix T37670: Paint mode + procedural map colours errorSergey Sharybin
Summary: Seems to be known TODO in the code, but no idea why it was never solved, especially since tweak is so much easy. It might be arguable that we need to support painting color space, but it's still much better to convert to sRGB space. It's gonna to cover 90% of cases anyway. Reviewers: campbellbarton, brecht Reviewed By: brecht Maniphest Tasks: T37670 Differential Revision: http://developer.blender.org/D65
2013-12-03Code cleanup: replace rectf_scale with BLI_rctf_scaleCampbell Barton
and add area arg to ui_handler_panel_region
2013-12-03View Navigation: Walk and Fly modesDalai Felinto
This is a addtion to the dynamic fly mode. It behaves as the first person navigation system available in most 3d world games nowadays. You can alternate between the old mode (Fly) and the new mode (Walk) in User Preferences > Inputs Manual: ------- http://wiki.blender.org/index.php/Doc:2.6/Manual/3D_interaction/Navigating/3D_View#View_Navigation http://wiki.blender.org/index.php/Doc:2.6/Manual/3D_interaction/Navigating/3D_View/Navigation_Modes Shortcuts: ---------- WASD (hold) - Move forward/backward and straft left/right QE (hold) - Move up and down Tab - Alternate between Walk and Fly modes Shift (hold) - Speed up movement Alt (hold) - Slow down movement Space or MMB - Teleport V - Jump +/- or mouse wheel - speed increase/decrease speed for this Blender session User Preferences Options: ------------------------- Navigation Mode - fly/walk navigation systems (fly is the old, walk is the new, next options are for walk mode only) Gravity - alternate between free navigation and walk with gravity modes Mouse Sensitivity - sensitivity factor to mouse influence to look around Teleport Duration - how long the teleport lasts Camera Height - camera height to use in gravity mode Jump Height - maximum jump speed in m/s Move Speed - base move speed in m/s Boost Factor - multiplication factor when running or going slow (1/boost) Development Notes: ------------------ * The initial code was based on view3d_fly.c. * The NDoF code was not touched, so it most likely is not working. Pending Issues: --------------- * Draw in the UI the shortcut options, and current values (e.g., Mode: Fly/Walk) (we need a proper API for that) * OSX seems to present issues if we re-center the mouse every time. We implemented a workaround for that, but a real fix would be welcome. Code reviewed and with collaborations from Campbell Barton - @campbellbarton Differential Revision: http://developer.blender.org/D30
2013-12-03Code Cleanup: minor changes fly-mode edits, use copy_v3_fl3, remove commentsCampbell Barton
2013-12-03Code Cleanup: remove redundant/misleading NULL checksCampbell Barton
2013-12-03Code Cleanup: use BLI_strncpy when copying into fixed sized buffersCampbell Barton
2013-12-03User Interface: error in own recent commit, replacing loop with memsetCampbell Barton
2013-12-03Knife Tool: incorrect sized vector args (harmless but misleading)Campbell Barton
2013-12-02Fix for crash pasting text into uilist filterCampbell Barton
2013-12-02Fix T37671: Edit Texture Space on Skin Resize crashSergey Sharybin
Texture space editing from TFM_SKIN_RESIZE is not supported, so hide the option and don't use it for such a transform.
2013-12-02User Interface: fix for crash pressing Ctrl+DeleteCampbell Barton
also remove redundant string duplication.
2013-12-02Blender Font (BLF): add length argument to string width/height functionsCampbell Barton
This also fixes a crash editing buttons longer then UI_MAX_DRAW_STR
2013-12-02MemArena: use size_t instead of int for alloc args and internal storage.Campbell Barton
also add BLI_memarena_calloc to be used when calloc isnt enabled for the arena.
2013-12-01Code Cleanup: make cpack into a function.Campbell Barton
2013-12-01Code Cleanup: replace ABS() with fabsf() when used with float expressions.Campbell Barton
2013-11-30BMesh/Mesh: replace scanfill with polyfillCampbell Barton
2013-11-29Remove some extraneous glEnableClientState/glDisableClientState. ThisAntony Riakiotakis
part of the code is not interleaved with immediate mode drawing so they are not necessary.
2013-11-29Image wrapping for plane track in clip editorSergey Sharybin
Summary: Now it's possible to assign an image to plane tracks in clip editor. This image is only used for display in clip editor and this image is being warped into the plane track rectangle. Main purpose of this is to get early feedback about how good image warping matches the footage, before clip goes to the compositor. Pretty much straightforward change: just compute homography from undeformed normalized frame corner coordinates (unity square) to plane marker corners and apply this matrix to opengl stack. Still could improve behavior when perspective plane transform is degenerate, but that's not so much critical for now i'd say. Reviewers: brecht, campbellbarton Reviewed By: brecht CC: sebastian_k Differential Revision: http://developer.blender.org/D57
2013-11-29Fix errors and inconsistencies in confirmation popup removal.Brecht Van Lommel
* Improve some clip editor messages * Remove popup for metastrips, seems unnecessary * Renamed some variables for consistency * Avoid unnecessary call to CTX_DATA_COUNT Reviewed By: sergey, campbellbarton, aligorith Differential Revision: http://developer.blender.org/D44
2013-11-29File Browser: autocomplete keeps focus in the file field when entering a folder.Brecht Van Lommel
There is a bunch of internal refactoring going on too: * No longer use operators to handle these directory and file fields, only makes things more complicated than they should be. * Handle autocomplete partial/full match deeper in the UI code * Directory field still does not keep focus, that's for another time to fix, you can already do pretty quick keyboard only navigation with the file field. Reviewed By: elubie Differential Revision: http://developer.blender.org/D29
2013-11-28Transform: improve normal orientationCampbell Barton
- when 3 verts are selected ensure the normal is flipped on the side of existing vert normals. also use the most distant 2 verts to define the tangent. - when 2 vertices are selected, the normal wasn't aligned with the vert normal.
2013-11-28Fix T37143: Wrong normal dir with individual origins + one vert selectedCampbell Barton
2013-11-28View3D: split camera controlling parts of fly mode into their own functionsCampbell Barton
2013-11-27Fix T37414: local view not taken into account for blender internal F12 ↵Brecht Van Lommel
render over 3D view.
2013-11-27Fix T37203: New face from an edge failed if only one vert was connected to a ↵Campbell Barton
wire edge
2013-11-27Disable redo for bend operatorCampbell Barton
2013-11-27Fix T37383: wrong spacing on Add menu in 3D view header.Brecht Van Lommel
This also was in the info header but less obvious, mistake in the layout engine.
2013-11-27Fix for recent error (editmesh triangulate crashed).Campbell Barton
2013-11-26Fix own regression in rB254aa8f3a0fb: Titles and sub-titles in menus were ↵Bastien Montagne
drawn shifted to the right. Reported by plasmasolution over IRC, thanks. Also fixes wrong handling of "sub-titles" with icons in EnumO menus (they were just treated as text-only ones). Dev notes: in fact, that clean up commit revealed kind of an "hidden bug that happend to work well" (or at least, a very bad hack): with titles without icon, code used to use uiItemL with ICON_NONE. However, as the root layout is a menu one, internal ui code would add a dummy blank icon, and set UI_HAS_ICON flag for the label button. But in the affected menus, code afterward assigned UI_TEXT_LEFT to but->flag, thus erasing the (internal) UI_HAS_ICON. As UI_TEXT_LEFT was moved to but->drawflag, the internal flag was no more erased, and the fake icon was drawn, creating that shift-to-the-right effect. Turns out we do not even have to set UI_TEXT_LEFT in these cases, just add label buttons without icon is enough!
2013-11-26Fix T37624: Rename Marker does not update Marker in 3D View until Frame ChangeSergey Sharybin
Was simply missing notifier listener in 3D viewport. Also fixes missing refresh when adding a marker.
2013-11-26Blender Internal: Fix material preview that the bounce lights permanently ↵IRIE Shinsuke
disappear once volume material is used.
2013-11-26View3D: disable auto-perspective when orbiting the view out of a camera.Campbell Barton
2013-11-26Sculpt Dynamic Topology: support collapsing edges without subdividing edges ↵Brecht Van Lommel
as well This allows you to choose between subdivide edges, collapse and both. Being able to only collapse edges can be useful to simplify meshes with accidentally introducing more detail. Reviewed By: psy-fi, carter2422 Differential Revision: http://developer.blender.org/D15
2013-11-26fix for error in own recent commit, removing orientations.Campbell Barton
2013-11-26Fix 37571: Knife Select should be disabled when no faces are selectedCampbell Barton
also check a similar case for bisect
2013-11-26User Interface: don't show macro args in tooltipsCampbell Barton
was often making much too big strings to show in a tip.
2013-11-26Code cleanup: As Sergey stated on bf-committers one should use id_us_min() ↵Thomas Beck
if the user counter has to be decremented and not decrement the counter by hand.
2013-11-26Fix T37617: "Add plane" was adding a 2*2 gridBastien Montagne
Was a regression from rBaa3c06b41ca9, hope this time all things are OK again (note the X/Y subdivision values still are different than before (-1 for same result), but imho they make more sense this way).
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-11-25Fix: jump to next/previous marker shortcut keys conflicted with others in ↵Brecht Van Lommel
clip editor. Disable them for now and leave to for keymap revamp to assign them shortcut keys or not.