Campbell Barton
35cd649c66
rename cursor setting functions to make modal set/restore more clearly related functions.
2013-09-06 22:34:29 +00:00
Campbell Barton
f6b37f34ec
code cleanup:
...
- add missing headers from cmake (own omission)
- quiet rna_test.c unused define warnings.
- minor style edits
- spelling corrections and ignore all uppercase words with spell checking script.
2013-09-05 19:56:49 +00:00
Antony Riakiotakis
4b1436b525
Ctr-Alt-F radial control operator for texture painting, controls the
...
rotation of the brush mask texture.
Unfortunately secondary path does not work here because we do not have a
permanent switch to choose between primary-secondary brush texture. Use
operator property instead.
2013-09-05 14:02:59 +00:00
Campbell Barton
29efa96940
style cleanup
2013-09-04 03:30:41 +00:00
Campbell Barton
c0ca93c9b2
Add poll message when poll fails because of window missing from the context.
...
This means calling invoke operators from python in states that dont support will give a meaningful error message.
also reduce context lookups when polling.
2013-09-02 19:28:44 +00:00
Sergey Sharybin
35b61a7512
Move GCC attributes into a centraized defines
...
Instead of having ifdef __GNUC__ all over the headers
to use special compiler's hints use a special file where
all things like this are concentrated.
Makes code easier to follow and allows to manage special
attributes in more efficient way.
Thanks Campbell for review!
2013-09-01 15:01:15 +00:00
Campbell Barton
02773c7f28
don't show screen-space-line start/end points in operator redo panel.
2013-08-29 19:02:07 +00:00
Campbell Barton
07994d6f50
mesh bisect can now be defined with mouse input
...
(using cursor + numeric values was too clumsy for defining orientation).
once the cut is done numeric input still works as before
2013-08-29 18:45:04 +00:00
Campbell Barton
bd2f6c5907
default blend file name setting (untitled.blend) length check wasn't correct, move to generic function BLI_ensure_filename().
2013-08-29 05:34:58 +00:00
Campbell Barton
567e13b2bb
don't replace the extension with '.blend' in save code since the file selector already ensures this,
...
needed so python scripts can save as temp filenames.
2013-08-29 04:26:40 +00:00
Brecht Van Lommel
2c31bce47f
Fix #36555 : preview render in properties editor did not get cancelled and
...
restarted fast enough on resizing the editor, especially noticeable with
e.g. luxrender which does a progressive refining render.
2013-08-28 19:22:48 +00:00
Campbell Barton
4d2b50ad74
remove unused function. also typo
2013-08-27 23:34:16 +00:00
Campbell Barton
abaa4cd490
fix [ #36409 ] Continuous Grab problem with arrow keys.
2013-08-27 01:30:09 +00:00
Campbell Barton
8ef934c73f
ghash/bli-listbase edits, rename BLI_ghash_pop -> BLI_ghash_popkey (since it takes a key as an arg and isnt popping any element from the hash as you might expect).
...
add BLI_pophead/tail, since getting the first element from a list and removing it is a common task.
2013-08-26 23:37:08 +00:00
Campbell Barton
cdd57d4994
fix for error reading from freed memory when deleting a screen, would free then notifier then check its contents in the notifier queue loop.
2013-08-26 22:48:14 +00:00
Campbell Barton
09a52f18b6
ghash: reserve size when its known or can be guessed close enough.
...
also avoid allocs per node in pbvh_bmesh_node_limit_ensure()
2013-08-24 17:33:47 +00:00
Campbell Barton
3cf14f0b3a
style cleanup: space around for loop wrappers
2013-08-24 10:05:29 +00:00
Sergey Sharybin
c0f8e15295
Speedup for guarded allocator
...
- Re-arrange locks, so no actual memory allocation
(which is relatively slow) happens from inside
the lock. operation system will take care of locks
which might be needed there on it's own.
- Use spin lock instead of mutex, since it's just
list operations happens from inside lock, no need
in mutex here.
- Use atomic operations for memory in use and total
used blocks counters.
This makes guarded allocator almost the same speed
as non-guarded one in files from Tube project.
There're still MemHead/MemTail overhead which might
be bad for CPU cache utilization
2013-08-19 10:51:40 +00:00
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