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-01-16fix for airbrush not using tablet pressure (any brush with BRUSH_SPACE ↵Campbell Barton
disabled).
2013-01-16draw the brush size with pressure applied (when the tablet is used), nice to ↵Campbell Barton
see the actual size used.
2013-01-16don't check for mouse-movement if the double click event isn't on a ↵Campbell Barton
mouse-button.
2013-01-16move double click check into its own function.Campbell Barton
2013-01-16minor changes to ghostCampbell Barton
- use WITH_ASSERT_ABORT define, so GHOST_ASSERT will abort. - rename XTablet -> GHOST_TabletX11, was confusing since it was named like an xlib struct.
2013-01-16style cleanupCampbell Barton
2013-01-12Mac HiDPI ("retina") handling:Ton Roosendaal
OK - so you have this nice crisp screen, and still you want to add extra monitors to the laptop! That means Blender should switch back and forth to HiDPI modes, when you move a window to another monitor. This code makes the pixelsize scale factor a window property, and handles an event when a window moves to another monitor. It then changes the native pixelsize nicely and refreshes entire UI. You can also have one Blender window on high, and other on low resolution. Stretching a Blender window from 1 monitor to the other works too, but that is Apple magic handling it.
2013-01-10Bug fix 33732Ton Roosendaal
Modal operators with hardcoded (in C) event handling now don't get double clicks anymore. For modal keymaps things work OK. This fixes number input typing for CTRL+B bevel, for example.
2013-01-09add RNA_def_struct_ptr(...) to use for runtime struct registration, saves ↵Campbell Barton
over 2000 string lookups on startup and gives overall ~10% speedup for starting blender on my system.
2013-01-09style cleanupCampbell Barton
2013-01-08Bugfix #33803Ton Roosendaal
(2.65a and older) Case: ALT+CTRL+U (user prefs) made mousewheel change button values in inactive window. On opening 2nd window, or de-activating a window, the modifier state was kept for that window. That meant that mouse-over in a window was using the old modifier - for example for scrollwheel it would change values in buttons.
2013-01-08style cleanupCampbell Barton
2013-01-06Trackpad: "pinch/stretch" zooming is non-inversed in default now.Ton Roosendaal
Only tested on Mac trackpads... I'm on it.
2013-01-05Changes for opengl render to reflect new alpha premul pipelineSergey Sharybin
without hurting quick texture painting - ED_view3d_draw_offscreen will now output buffer with transparent alpha, if sky needed it should be alpha-undered later. - ED_view3d_draw_offscreen_imbuf now accepts alpha mode as an argument which could be either R_ADDSKY or R_PREMULALPHA - OpenGL render and sequencer's opengl preview will now reflect scene's Alpha Mode - Quick Edit will use OpenGL with transparent alpha mode
2013-01-04code cleanup, also remove glError check in font drawing code since its now a ↵Campbell Barton
debug option.
2013-01-04Fixes - post 2.65aTon Roosendaal
- Trackpad swipes now behave same as scrollwheel for listview scrolls (disabling 2d view scroll when mouse over) - Added back 2.4 debug print for glGetError() Only useful for developers - to check what goes on when ogl messes up. - Made more clear print for read factory default. It's not error :)
2013-01-02Some UI message fixes...Bastien Montagne
2013-01-02Bug fix - post 2.65aTon Roosendaal
New option "Keep Session" was not using "untitled.blend" as default save name, in case a startup.blend was kept as session. Could give bad accidents.
2012-12-31code cleanup: name event -> event_type in macros, since this is from event->typeCampbell Barton
2012-12-29user-preferences for addons. currently unused, example & docs still to come.Campbell Barton
2012-12-29style cleanupCampbell Barton
2012-12-28revert r53356, this stopped the leak but still wasn't working nice.Campbell Barton
Add asserts when CTX_data_pointer_get/CTX_data_collection_get are incorrectly used. disable context inspection for now, Will enable again when its working properly.
2012-12-28This commit frees list ui items from their dependencies to Panel, and hence ↵Bastien Montagne
from all the limitations this implied (mostly, the "only one list per panel" one). It introduces a new (py-extendable and registrable) RNA type, UIList (roughly similar to Panel one), which currently contains only "standard" list's scroll pos and size (but may be expended to include e.g. some filtering data, etc.). This now makes lists completely independent from Panels! This UIList has a draw_item callback which allows to customize items' drawing from python, that all addons can now use. Incidentally, this also greatly simplifies the C code of this widget, as we do not code any "special case" here anymore! To make all this work, other changes were also necessary: * Now all buttons (uiBut struct) have a 'custom_data' void pointer, used currently to store the uiList struct associated with a given uiLayoutListBox. * DynamicPaintSurface now exposes a new bool, use_color_preview (readonly), saying whether that surface has some 3D view preview data or not. * UILayout class has now four new (static) functions, to get the actual icon of any RNA object (important e.g. with materials or textures), and to get an enum item's UI name, description and icon. * UILayout's label() func now takes an optional 'icon_value' integer parameter, which if not zero will override the 'icon' one (mandatory to use "custom" icons as generated for material/texture/... previews). Note: not sure whether we should add that one to all UILayout's prop funcs? Note: will update addons using template list asap.
2012-12-27add option to BLI_scanfill_calc() - BLI_SCANFILL_CALC_HOLES, gives some ↵Campbell Barton
speedup for BMesh ngons which never have holes and ensures predictable triangle count (totvert - 2), which is needed for pre-calculating array size.
2012-12-26Region scrollbar fix!Ton Roosendaal
Now scrollbars correctly hide and show, making space for the actual contents in a region. It solves several old hacks, and puts view2d code a bit more back in control as well. Implementation notes: - The view2d mask feature is working again - The #define V2D_SCROLL_HORIZONTAL_HIDE means: "turn on hiding". - Code for UI_view2d_region_reinit() is enforcing better standard view settings But... two hack/patches needed to be added: - Region panel drawing: if after generating the button panels it appears a scroller hides or reveils, it calls all the generating code again. (a simple scale doesn't work due to rounding differences in layout code) - View2d code that maps 'tot' and 'cur' rects: if this code detects that the mask changes, it calcs the map code again. Also a bugfix (issue in 2.65) - The left/bottom area split widget was drawing 1 pixel too large sometimes, leaving bad trails on moving area dividers.
2012-12-23Added support of J2K codec for Jpeg2000 writingSergey Sharybin
This codec is absolutely needed to generate DCP using OpenDCP, before that external application to convert JP2 to J2K was used which slowed down export a lot. New codec is exposed to image format settings panel and called Codec. Default one is JP2 which creates files with .jp2 extension, new one is called J2K which creates with .j2c extension. Other changes: - Fixed avi jpeg warning which was treating as error here. - Made it so extension is detecting from ImageFormatData instead of image file type, which makes it possible to have different extension for the same file type depending on it's settings. IRIS format should still be changed (depending on number of channels it'll be .bw, .rgb or .rgba extension) - Default image format settings would be set from image buffer when re-saving it. Makes it possible to easily open .j2c file and save it using J2K codec (without this change it'll save as .jp2 using JP2 codec)
2012-12-22Small drawing glitch, for UI with transparent overlapping regions;Ton Roosendaal
- The corner 'duplicate/merge area' widget was drawing too often. (Added comment in subwindow 'active' code, too many redraws are being sent on moving mouse over region eddges)
2012-12-22Weight gradient tool for weight paint modeCampbell Barton
- blends from current weight into alpha zero. - uses brush alpha & curve. - respects weight paint vertex/face select modes. - updates realtime. Access With - Alt+LMB (linear gradient) - Ctrl+Alt+LMB (radial gradient) note: - WM_gesture_straightline_* are used but not well suited to this task, may end up replacing with own modal operator. - Key handling works but needs to be done better.
2012-12-22code cleanup and minor changesCampbell Barton
- use DummyRNA_NULL_items to replace empty enums. - replace calloc with malloc in copy_dverts since its copied over after. - add wmGesture->userdata, so operators that use gestures have somewhere to store their own data (not used yet).
2012-12-21make Node.links return a tuple, this may you can't do socket.links.append() ↵Campbell Barton
by mistake. removed RNAMeta mixin class since you cant register subclasses. also some minor code cleanup
2012-12-20Mac Retina fix:Ton Roosendaal
Mouse coordinates were not mapped correctly for code that allows to use multiple windows efficiently (mouse over not-active windows). Apple's high-density display mode works a bit strange, requiring some hacks :/ - Desktop coordinate system (mouse pos and for windows) is as usual (set by display resolution settings) - However, the available pixels in a window is always on 'retina' level. (full screen - 2880 wide, but window can be 1440 or 1920 wide) In order to get this to work for opengl and Blender, we use internally the coordinates on pixel level. That means that window positions and sizes have to mappend in our code. Once all issues for retinas have been tackled, I'll check on clean API for it, so you can also use it in future for other high density screens.
2012-12-20style cleanupCampbell Barton
2012-12-19improve info view property output for properties.Campbell Barton
- Include RNA properties when checking for matches. - Don't include the context's property store (these are normally set by the UI code and not accessible by a script author) Note: added CTX_data_dir_get_ex() which has options for returning different members from the context.
2012-12-18fix for crash in recent changes, missing NULL checkCampbell Barton
2012-12-18fix for crash in own commit - happend when changing userprefs.Campbell Barton
2012-12-18use 'bpy.context' when printing properties in the info window.Campbell Barton
2012-12-18changing RNA properties now prints python script in the info view.Campbell Barton
next will add context so bpy.data.xxx[id] are not used for all references.
2012-12-18functions to make a string representation of a property & assignment.Campbell Barton
2012-12-18Bug fix, IRC collection. (Fix for recent commit)Ton Roosendaal
On saving new files (after loading startup.blend), the user prefs were included. G.fileflags again...
2012-12-17Added GPL header to sconscripts!Bastien Montagne
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...
2012-12-15add checks to style checker script for 'a . b' and 'a []'Campbell Barton
also use BLI_findindex for modifiers_indexInObject
2012-12-14Bug fix, irc submitted:Ton Roosendaal
On saving a first .blend after startup, the file would load back as if it was not saved (showing no name in header). The whole FILEFLAGS and G.relabase_valid and G.file_saved etc is messy. This commit fixes issues, but only adds more mess :) Will discuss a nicer implementation of all of this.
2012-12-14Fixes for correct UI scaling display:Ton Roosendaal
- Move to layer (and more popups) didn't scale yet - User Prefs and render window now open on right location on Mac Retinas - Brush sizes for painting now scale for Mac Retina
2012-12-14style cleanupCampbell Barton
2012-12-13Bugfix - own collection.Ton Roosendaal
Very occasionally Timer Events could still get handled, after stopping a timer - especially with the timer event still in the queue. This patch disables such events. Introduced a EVENT_NONE to make sure it gets ignored everywhere.
2012-12-13Bugfix, IRC report:Ton Roosendaal
If a new userpref.blend was loaded, but no startup.blend existed yet, Blender crashed.
2012-12-13region overlap feature missed view3d grid-scale text, increase string size ↵Campbell Barton
for title text too.
2012-12-13minor editsCampbell Barton
- add BLENDER_QUIT_FILE define. - use const for passing rcti's in widget drawing.
2012-12-13style cleanup: changes from recent commitsCampbell Barton
2012-12-13code cleanup: quiet warningsCampbell Barton