Commit Graph

6295 Commits

Author SHA1 Message Date
Campbell Barton f383e2e0e6 Remove msvc build files which are not needed anymore. 2010-10-23 15:14:54 +00:00
Campbell Barton c6976e7351 use explicit file paths for CMake rather then globing, This is recommended by cmake devs.
globbing vs explicit is discussed here.
http://www.cmake.org/pipermail/cmake/2008-December/025694.html

Practical implications are:
- developers need to keep CMakeLists.txt files up to date.
- Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-23 04:05:55 +00:00
Nathan Letwory 54b3508444 Fix [#24337] Create vertex (and faces and edges) with "Control+LMB" doesn't works!
Reported by Lluc Romaní Brasó

Some of my earlier changes to the modifier handling code accidently sent out new events for modifier keys when they where held down (repeat).

Also lay foundation for shift+numpad handling.
2010-10-22 22:58:12 +00:00
Campbell Barton 97784a7186 fix for warnings & detecting opensource nouveau drivers. 2010-10-22 01:06:21 +00:00
Nathan Letwory d272ea36c2 Wrong check for platform accidently put /WX to non-msvc toolchains too. 2010-10-21 18:13:43 +00:00
Nathan Letwory b9d17f97eb Don't use CS_CLASSDC after all. Makes drawing multiple windows funky. 2010-10-21 11:15:57 +00:00
Campbell Barton 2e6fcc31cb tweaks to external libs to get rid of warnings. 2010-10-21 09:19:52 +00:00
Nathan Letwory c9d16d0ddb /WX enabled for MSVC in CMake too.
Warning fixes.
2010-10-21 08:32:53 +00:00
Nathan Letwory 107b274fb8 Enable /WX in blenkernel
Silence warnings
2010-10-21 07:39:18 +00:00
Nathan Letwory 6e43a400e3 Use one device context for our window class. 2010-10-21 07:18:38 +00:00
Nathan Letwory 3cbb5611d5 * Use HWND_DESKTOP as parent for Blender Windows.
* Reorder freeing of OpenGL context code.
2010-10-21 07:16:02 +00:00
Nathan Letwory 9e73da71f5 Enable /WX on Windows. 2010-10-21 07:14:31 +00:00
Nathan Letwory d7b40531cd Fix [#20277] Bug with Continuous Grab on Windows
Reported by Alex Glawion

When we have a maximized window we need to take into account
that there are no borders.
2010-10-19 09:38:56 +00:00
Campbell Barton 58683fa993 enable DEBUG define in CMake and scons, also change booleans debug option to BOP_DEBUG, which was used inconsistently, and had to add a define for superlu. 2010-10-18 11:21:22 +00:00
Nathan Letwory 6c505c97a7 _DEBUG -> DEBUG 2010-10-18 07:03:38 +00:00
Nathan Letwory a293f76cdf Use DEBUG instead of NDEBUG 2010-10-18 06:52:10 +00:00
Nathan Letwory 05a105cac1 Add short comment. 2010-10-18 00:42:18 +00:00
Campbell Barton 433f871f0f bugfix [#24302] Ctrl+Click Extrude gets old mouse events
double click didnt check mouse distance moved so you could click twice in different areas of the screen very fast and generate a double click event which had old mouse coords copied into it but was sent to an operator set to run on single click (because the double click wasnt handled).

Also added MEM_name_ptr function (included in debug mode only), prints the name of allocated memory.
used for debugging where events came from.
2010-10-18 00:25:32 +00:00
Joshua Leung 013ffe9041 Bugfix #24296: AutoIK interactive chain length adjustment feature is missing
In 2.49, you could adjust the maximum length of Auto-IK Chains by using scrollwheel up/down or page up/down while moving Auto-IK bones. Now this is possible again with those hotkeys, but you need to hold SHIFT to get this to work, otherwise we get a conflict with the hotkeys for proportional edit nowadays.

Was broken when transform tools switched from using hardcoded key mappings to using a modal keymap.
2010-10-17 11:20:12 +00:00
Nathan Letwory ac03fbe4c9 Adapt OSX code for IMB_allocImBuf param changes. 2010-10-16 15:53:01 +00:00
Nathan Letwory c52e7c1370 Fix AltGr problem on Windows
It was impossible for keyboard layouts that use AltGr to create certain characters to insert
them in Text and Console.

The keyboard driver in Windows sends left control events when AltGr is pressed. This meant that
Blender thought control was being held, which is a PASS_THROUGH condition for the insert operator
in both editors.

Add testing of keyboard layout for AltGr, both on initialization and WM_INPUTLANGCHANGE.

To remedy AltGr problem, we send now a left control key up event to Blender before further processing
the AltGr key.
2010-10-16 15:21:55 +00:00
Peter Schlaile 7122b534fa == Audaspace / FFMPEG ==
Audaspace audio seek code wasn't taking start_time into account.
(Most common symptom: HDV MPEG2TS files always start audio playback at the 
beginning regardless of seek position.)
2010-10-16 15:01:01 +00:00
Nathan Letwory f631a8b5be Simplify GHOST modifier key handling on Windows. 2010-10-15 14:52:47 +00:00
Nathan Letwory c9d240626d c++ -> C++ 2010-10-08 20:40:42 +00:00
Nathan Letwory 663ce490e0 Enable CXX_GUARDEDALLOC support through SCons. 2010-10-08 20:39:56 +00:00
Campbell Barton d6b235f3ef patch [#24162] r32332 missed a couple of command key changes - with fix
from Shane Ambler (sambler)
2010-10-06 09:21:40 +00:00
Campbell Barton 568cb06616 rename Command key to OSKey, Window manager already called it the OSKey but internally it was mixed. 2010-10-05 19:10:15 +00:00
Damien Plisson b6bdf681fb OSX/Cocoa: Fix [#24068] for correct handling of .blend file names with accented nordic characters 2010-10-02 09:17:32 +00:00
Damien Plisson af8ae62ec0 OSX/Cocoa: Mouse up was not sent to WM after window resize 2010-10-02 09:15:32 +00:00
Damien Plisson 606b800c46 OSX/Cocoa : discard Cocoa GL view flush while in live resize, and send Window size change ghost message only when user releases mouse button (not in live resize).
Potentially fixing bug [#23561]
2010-09-26 19:53:45 +00:00
Campbell Barton dea59cc5eb warning fixes and minor cmake changes. 2010-09-18 03:55:56 +00:00
Brecht Van Lommel b19521f2b2 Fix OS X memory leak prints when starting blender:
"__NSAutoreleaseNoPool() ... autoreleased with no pool in place - just leaking"
2010-09-16 19:42:51 +00:00
Nathan Letwory 6b18c9dc61 Partial fix (Linux) [#21395] Command key for keyboard mapping not functional
Reported by Andy Braham

Handle XK_Super_L and XK_Super_R as the GHOST_kKeyCommand. Since Command key is
not discerned (yet) in left/right variants, read both and set accordingly.

This now completes fixes for [#21395]
2010-09-16 06:52:12 +00:00
Nathan Letwory d6baea457e Partial fix [#21395] Command key for keyboard mapping not functional
Reported by Andy Braham.

Handle VK_LWIN and VK_RWIN (The infamous Windows keys). Note, these are not separate, so handled as one command key.
2010-09-15 23:19:21 +00:00
Campbell Barton 9b518710c6 update for MingW/CMake
- ignore MSVC warnings when FREE_WINDOWS is defined to quiet warnings.
- the CMake flags were not being set correctly making blender have weirdo colors (no -funsigned-char).
2010-09-15 16:13:32 +00:00
Campbell Barton 74059891e9 option to disable ITASC IK solver, (will be enabled by default ofcourse)
- option only available to cmake, scons and make have this enabled always.
- without this clang/llvm can compile blender
- this was the second biggest internal lib, 192mb -> 172mb for all blenders libs (with debug flags), so gives some speedup to linking.
2010-09-12 12:27:12 +00:00
Campbell Barton d0a1b76fe4 use relative paths for ghost/cmake 2010-09-12 12:16:50 +00:00
Nathan Letwory 06b1c933b3 Commit patch [#23685] Cleanup/crashfix for AA using win32 ghost.
Provided by Mitchell Stokes (Moguri)
2010-09-08 08:25:38 +00:00
Campbell Barton 2406ebe1a4 - added back zlib include (needed for win32).
- use list append in more places.
- remove non existing include dir.
2010-09-07 01:13:10 +00:00
Campbell Barton 04b0dcd9e5 - use list append in more places (preferred method since its faster)
- remove some unused include paths
- remove unused linux path define
2010-09-06 10:15:41 +00:00
gsr b3d a8269c8946 SVN maintenance. 2010-09-03 03:30:20 +00:00
Nathan Letwory d372fc178c Fix [#23578] Blender crashes when Audio Scrubbing is on
Reported by Guy Smith.

MSVC-compiled code would fall over iterator decrease on empty list. Shortest snippet to redo: http://www.pasteall.org/15408/cpp
See also http://www.pasteall.org/15409/cpp for list.end() behaviour on MSVC. Thanks to Jörg Müller for assistance.
2010-09-02 21:56:08 +00:00
Joerg Mueller dd4aecb97a Audaspace: Removing an unneeded function. 2010-09-01 20:33:26 +00:00
Nathan Letwory 6c113b54b3 Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Campbell Barton 4b40d73bfb rename most scons build targets to match cmake 2010-08-25 04:30:47 +00:00
Campbell Barton 6464718083 rename some cmake build targets 2010-08-24 04:29:23 +00:00
Joerg Mueller b9be82487f Fixing [#23370] problem when running game engine 2010-08-20 11:57:46 +00:00
Brecht Van Lommel 27c5dc3449 Fix #23198: openmp building for OS X ppc gave errors about non-relocatable
expression here. Not sure why, perhaps compiler bug, but this simple change
fixes it.
2010-08-20 11:31:55 +00:00
Benoit Bolsee ee78298dd5 Update MSVC project files 2010-08-17 20:53:07 +00:00
Joerg Mueller 26809f38aa Audaspace: This should fix all missing python includes now once for all... 2010-08-16 20:05:59 +00:00