Commit Graph

35620 Commits

Author SHA1 Message Date
fd755d2550 Fix #33522: Crash when "rotate arond selection" is on, and when no object in scene
Own regression in recent fix
2012-12-13 20:07:16 +00:00
ae2a9a6e7a Bug fix, irc report:
Overlapping regions, when you both want them on the same side they should not overlap
each other! (Try F5 on a region to flip position).

Code for subdivision is in need for some cleanup - a branching recursion is needed.
2012-12-13 17:43:12 +00:00
1d18a77019 Fix for using active scene instead of actually changed one in some RNA callbacks 2012-12-13 17:12:00 +00:00
28cd603140 Bugfix - own collection.
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-13 16:21:08 +00:00
02689df6c0 Part of bratwurst GSOC cleanup of subsurf unwrap code: Ommit subsurf
level in the operator and use the modifier level and subdivision type
instead. Using subsurf only makes sense if the modifier is first so
print an warning and turn off if this is not the case.
2012-12-13 14:33:14 +00:00
c12a1368ff Feature fix:
Upgraded version to 2.65.1, and check on this to map default region backgrounds
to have an alpha 0.5. This only worked until now for 2.64 savedi startups.
2012-12-13 13:20:01 +00:00
a63f0d320b Bugfix [#33511]
Overlapping regions: when dragging the region to close them, it started the blending
timer - which of course is not meant to happen.
2012-12-13 12:17:57 +00:00
0f97d53c74 add include so alloca() is found on mingw. 2012-12-13 11:59:07 +00:00
c44d105479 Bugfix, IRC report:
If a new userpref.blend was loaded, but no startup.blend existed yet, Blender crashed.
2012-12-13 11:27:21 +00:00
dfc3685b1f Only LMB clicks in Panel should return "handled" - it accidentally returned it for
mousewheel too. 

Previous commit made scrolling in button regions not work.
2012-12-13 10:58:00 +00:00
b30c74a517 Fix #33510: Rotate around selection doesn't work when .blend saved in sculpt mode
Issue was caused by calculateTransformCenter not giving any center point in cases
object is in painting mode, which lead to previous offset used for view rotation.

Since this previous offset is a static variable, it'll mean rotation will happen
around scene origin after re-starting blender.

Now made it so viewport rotation will use active object's center as an offset
when active object is in painting mode.

Should behave in more predictable way.
2012-12-13 10:51:38 +00:00
60808c5ed6 disable openmp thread assert, would fail in cases where the caller was locking for its self (sculpt mode) 2012-12-13 10:37:04 +00:00
1fca21cc24 Bug fix:
- Code for detecting "click inside button panel" was convoluted and detected wrong
  panels even when they were closed.
- Any click inside panels now return "Event Handled", that will prevent events
  being passed on in case of overlapping or transparent button panels.

This is ancient code, will be in on my attention list for further cleaning.
2012-12-13 10:24:46 +00:00
223cb8c94a FFmpeg: remove limits of bitrate, they were far too low for losless formats like DNxHD 2012-12-13 09:14:41 +00:00
0c3103ac85 Fix #33500: when transforming, tapping shift twice and holding did not enable
precision mode. Not really the intended way to use this but it revealed a bug
in the event handling here.
2012-12-13 07:32:31 +00:00
3a40831719 image view cursor wasn't scaling up with the DPI 2012-12-13 06:36:02 +00:00
e036c90253 region overlap feature missed view3d grid-scale text, increase string size for title text too. 2012-12-13 05:43:01 +00:00
1ab6306177 minor edits
- add BLENDER_QUIT_FILE define.
- use const for passing rcti's in widget drawing.
2012-12-13 02:40:49 +00:00
3716dfb3b0 remove UI_DPI_FAC, its not needed anymore. 2012-12-13 01:21:12 +00:00
0082b25eec remove BKE_main_scene_add(), just add main arg to BKE_scene_add() 2012-12-13 01:17:22 +00:00
96b2dc8e13 style cleanup: changes from recent commits 2012-12-13 01:00:21 +00:00
0260e4b8a3 code cleanup: quiet warnings 2012-12-13 00:47:47 +00:00
d6a291ca37 fix another crash from missing update in Auto-Merge from r52911 2012-12-13 00:41:23 +00:00
Alex Fraser
9a848c1a9d Can now set a lower bound on the number of subframes (i.e. an upper bound on the time step size) for fluid simulations. Previously, the "subframes" parameter was not available when the adaptive time step was enabled; now they can both be set. The two settings can be used together to greatly increase simulation stability. 2012-12-12 22:42:55 +00:00
9211fae41e Bugfix, irc report:
Crash on running in background mode. Calling GHOST function, but there is 
no GHOST initialized. Easy to skip.
2012-12-12 22:02:08 +00:00
160ebfa4c4 Disable a bugfix I did - to prevent event timers to be used still.
Code looks sane, but somehow it frustrates the panel animation timer, causing
freezes now. Work for tomorrow.
2012-12-12 20:31:12 +00:00
69ba2d3edb Crash, IRC report.
Moving panels in a buttons-region around was calling menu code, reading NULL pointer.
Seems to be an existing issue, not caused by my previous commit :)
2012-12-12 19:56:24 +00:00
7605e9dbf2 Better patch for pixelsize to be zero - ghost code is going to be fixed next. 2012-12-12 19:16:19 +00:00
dcf6e5f5f6 Quick fix for ghost error - solves pixelsize to return 0. 2012-12-12 19:09:25 +00:00
12b642062c Holiday coding log :)
Nice formatted version (pictures soon):
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability

Short list of main changes:

- Transparent region option (over main region), added code to blend in/out such panels.
- Min size window now 640 x 480
- Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake.
- Macbook retina support, use command line --no-native-pixels to disable it
- Timeline Marker label was drawing wrong
- Trackpad and magic mouse: supports zoom (hold ctrl)
- Fix for splash position: removed ghost function and made window size update after creation immediate
- Fast undo buffer save now adds UI as well. Could be checked for regular file save even...
  Quit.blend and temp file saving use this now.
- Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)"
- New Userpref option "Keep Session" - this always saves quit.blend, and loads on start.
  This allows keeping UI and data without actual saves, until you actually save.
  When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header)
- Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v). 
  Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards. 
- User preferences (themes, keymaps, user settings) now can be saved as a separate file.
  Old option is called "Save Startup File" the new one "Save User Settings".
  To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still.
- OSX: fixed bug that stopped giving mouse events outside window.
  This also fixes "Continuous Grab" for OSX. (error since 2009)
2012-12-12 18:58:11 +00:00
Lukas Toenne
5783283d72 RNA properties for width and height of nodes.
Note: For most node types the height is determined automatically.
Note2: There are two independent width values, one for regular nodes and one for the collapsed ("hidden") state.
2012-12-12 17:50:44 +00:00
Lukas Toenne
5ebe822f4b Fix for range checks in generated RNA functions. The code was skipping the value clamping for float and int properties if using the min/max values of the respective number format, but not taking into account range callbacks of the property. 2012-12-12 17:50:35 +00:00
f1d3a2e130 Fix error compiling in debug build, should test #ifndef NDEBUG instead of 2012-12-12 16:51:05 +00:00
82cc300ec6 fix for another crash in r52911 2012-12-12 16:39:16 +00:00
450139fd94 edge slide: skip creating BMBVHTree when its not used. 2012-12-12 16:32:05 +00:00
d5c2a1f8f4 remove context argument from EDBM_update_generic() 2012-12-12 15:22:54 +00:00
8e9a6871b4 fix for crash in own commit r52911 2012-12-12 15:01:27 +00:00
b76d465e3c Fix related to #33480: for blender internal volume rendering, the camera inside
volume wasn't accurate, it still isn't quite but hopefully a bit better by
taking clip start into account.

With clip start it's actually impossible to do a single 'inside' test, since
there will not be a single point where all camera rays start from, though for
small clip start they will be close together.
2012-12-12 14:43:11 +00:00
96cad133f7 fix [#33489] Scaling normals with Alt (maintains shell thickness) producing wrong result.
not exactly a bug - zero area faces from a cancelled extrude gave issues - but this is a common use case, so make it work by only using selected faces when calculating the vertex shell thickness.
2012-12-12 14:34:21 +00:00
bee7c20a97 move edge split into its own function which can be called by the modifier without having to call a bmesh operator (gives some speedup). 2012-12-12 12:57:27 +00:00
Lukas Toenne
0ca46e3524 Fix for menu context. The menu draw function context did not inherit the custom context storage from the original uiLayout yet. Fix by Campbell Barton (ideasman_42). 2012-12-12 12:50:49 +00:00
Lukas Toenne
ee62b20158 Fix for misleading doc string of panel header options. 2012-12-12 12:50:45 +00:00
Lukas Toenne
7ab67541d3 Toolbar region for the node editor. This region is, for now, empty and hidden by default. Later on we might add standard panels here, but at least it will give addons a place to register tool shelf panels. 2012-12-12 12:50:39 +00:00
dd0e554d9e Sequencer: add textured solid option for opengl preview 2012-12-12 12:42:12 +00:00
b93f02042e use header only tags for edge split (to prepare to move this into tools/) 2012-12-12 12:29:37 +00:00
743ecc7bd0 Revert recent workaround for sequencer, it'll only work in cases
scene strip is added at frame 1, which is very limited usecase.

Proper solution is not possible yet..
2012-12-12 12:23:30 +00:00
868cb64d6c Bug fix [#33492] Right click on 'confirm reload' crashes
Context check could result in NULL - added provision for it and made
sure the check is local only (for 1 new option)
2012-12-12 12:18:29 +00:00
0ec099f282 Sequencer old todo: inserting keyframes with preview opened didn't work
Solved in more like a workaround way by not calling BKE_scene_update_for_newframe
if scene's frame didn't change.
2012-12-12 11:12:37 +00:00
dd2d54bae9 Use own list of actions for Vertex Group Lock operator instead of reusing Select All actions.
Previous actions and descriptions were confusing, e. g. UnLock All used the description of Deselect All.
2012-12-12 10:21:24 +00:00
2713d4d5bd revert recent code cleanup which introduced const parameters 2012-12-12 09:49:05 +00:00