Campbell Barton
0395b8eee8
border render with cycles had 1 pixel offset on the top-right edge of the image, issue was caused by wmSubWindowScissorSet adding 1 to the ar->drawrct, now only add the padding when drawing the entire area
2013-08-05 04:52:27 +00:00
Campbell Barton
43ab02db14
code cleanup: remove redundant NULL checks
2013-07-31 09:18:40 +00:00
Mitchell Stokes
29f8dfd37a
BGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive vsync via UI options in the render properties, or by using the new Python method bge.render.setVsync(). Win32 and X11 support are done via EXT_swap_control. Support for using EXT_swap_control on OS X still needs to be added to Ghost.
2013-07-29 22:31:32 +00:00
Campbell Barton
02608d257a
add api call for initializing events from the windows eventstate.
2013-07-29 08:29:04 +00:00
Campbell Barton
fc4a777511
use '_exec' suffix for operator execute callbacks, also picky change to sizeof() use in BLI_array.h
2013-07-28 17:06:31 +00:00
Campbell Barton
9b16b105f1
avoid calling context functions when direct access is possible.
2013-07-23 18:30:06 +00:00
Campbell Barton
3ff3d1bc0f
replace use of strcat() where the string offset is known.
...
also correct bad logic with converting a textblock to 3d-text, bytes-vs-number of chars wasn't handled right.
2013-07-23 12:49:30 +00:00
Campbell Barton
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
Campbell Barton
a2492e0603
style cleanup: braces/indentation
2013-07-19 16:44:17 +00:00
Campbell Barton
397da50002
style cleanup: switch statements, include break statements within braces & indent.
...
also indent case's within the switch (we already did both of these almost everywhere)
2013-07-19 15:23:42 +00:00
Campbell Barton
fea5af0d88
code cleanup: replace wm_macro_modal inline search for BLI_findptr.
2013-07-19 10:39:55 +00:00
Campbell Barton
bf77d35f69
fix for bad lengths being passed to string functions.
2013-07-15 05:11:14 +00:00
Campbell Barton
0ea078ad03
fix for 2 bugs in animation playback
...
- reading bmp images was failing (needed to increase the size of the header to 64 bytes)
- the dnd image was being incorrectly checked (was always returning true even when none was used).
2013-07-13 12:58:00 +00:00
Brecht Van Lommel
3ce280e825
Fix #35960 , #36044 : blender internal viewport rendering crash while editing data.
...
Now the viewport rendering thread will lock the main thread while it is exporting
objects to render data. This is not ideal if you have big scenes that might block
the UI, but Cycles does the same, and it's fairly quick because the same evaluated
mesh can be used as for viewport drawing. It's the only way to get things stable
until the thread safe dependency graph is here.
This adds a mechanism to the job system for jobs to lock the main thread, using a
new 'ticket mutex lock' which is a mutex lock that gives priority to the first
thread that tries to lock the mutex.
Still to solve: undo/redo crashes.
2013-07-08 17:56:51 +00:00
Campbell Barton
8a388a7bef
fix [ #36043 ] Missing Tooltip for Excluded Paths field of Auto Run Python Scripts in User Preferences -> File
...
also select more/less were flipped for mesh menu compared to everywhere else.
2013-07-08 07:40:32 +00:00
Campbell Barton
6fb6087c68
correct bad use of bool for cursor arg.
2013-07-04 18:58:00 +00:00
Brecht Van Lommel
42f6136da8
Fix #35991 : show warning message to when trying to edit driven values in number buttons.
2013-07-03 20:37:07 +00:00
Brecht Van Lommel
76b3f6edcc
Fix #35933 : setting shortcut keys in object mode menu didn't work correct.
2013-07-03 17:11:33 +00:00
Campbell Barton
418011907c
remove nan copyrights from code added since blender become opensource (copy paste errors), also remove BKE_script.h
2013-07-02 10:14:59 +00:00
Campbell Barton
83411dab07
fix for crash in demo-mode, caused by r51702
2013-07-02 05:54:28 +00:00
Campbell Barton
5d413b523a
fix for crash when setting the cursor in background mode.
2013-06-28 16:37:39 +00:00
Brecht Van Lommel
4d5fffa1a9
Fix #35809 : dragging a non-active node in the node editor did not work reliably.
...
Disabled timer events from the properties editor were cancelling gestures.
2013-06-27 15:07:27 +00:00
Thomas Dinges
ee85587a43
Blender 2.68 Release maintenance:
...
* Update readme and release-log links to 2.68.
2013-06-27 11:30:53 +00:00
Campbell Barton
fad1da062d
correct typos in comments.
2013-06-25 22:58:23 +00:00
Brecht Van Lommel
6268434eee
Fix part of #35859 : lib linking errors were not shown when opening files through open recent.
2013-06-25 13:39:51 +00:00
Brecht Van Lommel
02fbfa5c70
Fix unnecessary 3D viewport redraws in various cases, in particular when editing
...
node materials.
Area and region listener callbacks now get the screen and area pointers passed, so
they can do more fine grained checks to see if redraw is really needed, for example
depending on the 3D view drawtype.
2013-06-24 22:41:33 +00:00
Brecht Van Lommel
2df82a2a2b
Code cleanup: fix some vs2012 compiler warnings
2013-06-21 12:33:19 +00:00
Ton Roosendaal
033089d286
Usability:
...
For users without middle-mouse buttons, they can now use Circle and Border
deselect by holding SHIFT. Middle mouse still works too.
2013-06-19 15:20:50 +00:00
Campbell Barton
447e9a4cd5
add option to enable auto-execute scripts, but exclude certain directories.
2013-06-18 18:11:52 +00:00
Campbell Barton
e6c54c26ae
use booleans for operator check functions.
2013-06-18 15:30:51 +00:00
Nathan Letwory
11f104a4a3
Fix [ #35728 ] "Load Factory Settings" changes temp fonder to "/temp/\"
...
This was actually being reset to "/tmp\".
Initialisation for the temp dir was missing after the userpref reload.
2013-06-15 20:12:16 +00:00
Campbell Barton
bff8a4c594
correction to typo in r57327, ui-load wasnt working on splash screen.
...
also minor changes:
- update the load-UI flag when changing in the preferences.
- remove unused initialization values for subdivide.
2013-06-10 10:55:57 +00:00
Campbell Barton
0d699fb46a
minor edit to previous commit, only show option to reload the file if its been saved.
2013-06-10 02:05:38 +00:00
Campbell Barton
412c043474
Python script auto-execution changes:
...
- script execution is off by default
- if a blend file attempts to execute a script
this shows a message in the header with the action
that was suppressed (script/driver/game-autostart) and 2 buttons to either reload the file trusted, or to ignore the message.
- the file selector will always default to use the trust setting in the user preferences,
but reloading an open file will keep using the current setting (whatever was set before or set on the command-line).
- added SCons setting WITH_BF_PYTHON_SECURITY, this sets the default state for the user prefereces not to trust blend files on load.
... this option was in CMake before, but always off, now its enabled by default for SCons and CMake, and forced on in CMake for now.
2013-06-10 00:42:16 +00:00
Campbell Barton
e7a487d1e9
code cleanup: group python reset functions in BPY_python_reset()
2013-06-09 23:31:53 +00:00
Ton Roosendaal
c24be7ec6e
Usablity:
...
Textbuttons: double click now selects entire words (like on file path segements)
Triple click was requested too, but that's not a WM event type yet.
2013-06-07 15:42:26 +00:00
Campbell Barton
a6b505ef0b
style cleanup
2013-06-06 06:02:46 +00:00
Brecht Van Lommel
601e5ad2f4
Fix #35624 : rendering to a new window, then switching scene in the main window,
...
would still continue to render the previous scene in the render window on F12.
2013-06-04 15:36:00 +00:00
Campbell Barton
2a195b7825
fix [ #35501 ] Operator log: some property changes log as [...].(null) = ...
2013-06-03 00:46:20 +00:00
Campbell Barton
0c004723fe
fix [ #35434 ] Segmentation fault switching screen layout from python
...
(take 2), only free popup handlers.
2013-06-02 20:59:00 +00:00
Ton Roosendaal
c6d1b6c3fc
Bug fix, own collection while testing
...
New OSX "Life resize" was also being called during opening of windows - when things are
not initialized yet. Crashed on opening full-screen window (which is animated in OSX).
2013-06-01 15:24:15 +00:00
Campbell Barton
9fb3d3e032
remove redundant includes from cmake and scons.
2013-05-30 02:16:22 +00:00
Campbell Barton
225c5fee6b
move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
...
remove MEM_sys_types.h which was a duplicate.
2013-05-28 19:35:26 +00:00
Campbell Barton
c77179a3c2
code cleanup: comment/remove unused defines
2013-05-28 01:15:59 +00:00
Campbell Barton
7e9fdd97ba
fix for incorrect type casting when checking macros exec() functions.
...
infact this worked by accident, but didn't crash.
2013-05-25 22:07:21 +00:00
Alexander Kuznetsov
b9817cd207
Live resize on Windows. Based on Ton's patch for mac.
...
Removing old resize stuff.
Windows has resize lag, which creates black gap with openGL. Still looking to fix it.
2013-05-25 21:59:34 +00:00
Ton Roosendaal
24321d4891
Solving ancient Blender window sizing issue;
...
- Removed grid-snapping for area coordinates on scaling windows.
That caused the areas to shrink or expand, and eventually corrupt screen layouts.
- Added simple but efficient life resize for OSX. I need to know why this is so much
code for Windows... I suggest Windows to just copy same method; dispatch the queue,
and just let the event system draw.
2013-05-25 14:08:56 +00:00
Ton Roosendaal
b6a4ea3d95
Bug fix #35481
...
Browsing screens via menu disabled screen editing (area divider drag) and made
popup menu hanging (select same editor for example).
Caused by bug fix #35434 , commit gets rewinded, and report reopened.
2013-05-23 15:10:36 +00:00
Campbell Barton
cd6b27f2b5
remove return value from MEM_freeN, it wasn't used anywhere and was cast to a different function signature. (which evidently works but error prone).
2013-05-21 07:37:59 +00:00
Campbell Barton
7b36dea115
code cleanup: scons - binreloc include was copied all over the place for no reason, -pthread too.
2013-05-20 18:55:08 +00:00