Commit Graph

103 Commits (coverity_scan)

Author SHA1 Message Date
scrawl 00d4fea91c Derive Animation from osg::Referenced to allow the UnrefQueue to delete it 8 years ago
scrawl a5247394dc (Re)set the inventory listener outside of the Animation class 8 years ago
scrawl 0fbd29ccb8 Use additive alpha blending on the character preview 8 years ago
scrawl e38221edc9 Set character preview's simulationTime to 0 to avoid flickering lights 8 years ago
scrawl dd54887783 Fix node mask of CharacterPreview being reset 8 years ago
scrawl c5f8ff6e0e Add names to several nodes for debugging purposes 8 years ago
Allofich 125e94ef0e Fix shadowing warnings 8 years ago
scrawl dda5bfbc9f CharacterPreview no longer depends on osgViewer 8 years ago
scrawl b2ae45f0eb Remove unneeded setGraphicsContext() calls 9 years ago
scrawl 641005b317 Remove Camera's children before removing the Camera
Should work around OSG race condition ( http://forum.openscenegraph.org/viewtopic.php?t=16077 )
9 years ago
scrawl 90a99991d1 Use empty() instead of !size() 9 years ago
scrawl 8bd16e4d5a Don't compute the world matrix multiple times 9 years ago
scrawl 553408949a Fix character preview 9 years ago
scrawl 044e0a829a Add fog 9 years ago
scrawl e8662bea31 Change the way that image origin is converted to OpenGL's lower-left convention
Flip the texture coordinates instead of flipping textures.

This simplifies the TextureManager (no need to worry if the caller wants flipping or not), should make it easier to generalize & multithread it.
9 years ago
scrawl f5f3d18b8e Add comment 9 years ago
scrawl 576d5111a5 Prefer Intersector::PROJECTION over Intersector::WINDOW 9 years ago
scrawl 0655abcd8b Fix some character preview raycasting issues (Bug #2769) 9 years ago
scrawl 2e9805fa0e Leak fix 9 years ago
scrawl bd9dc58560 Use the correct scale for actor swim height (Fixes #2833) 9 years ago
dteviot 77a1d947cc extracted MWMechanics::getPlayer() 10 years ago
scrawl 335ef97cf5 Rename Animation::Group to Animation::BlendMask
The old naming is problematic, because the term group was being used for another feature (text key groups) already.
10 years ago
scrawl d7695f2560 Remove unused NpcAnimation visibilityFlags 10 years ago
scrawl f017fd6860 Reduce includes in animation.hpp 10 years ago
scrawl 988a9cad58 getHitContact Head exception fix 10 years ago
scrawl 3dcb167066 Map rendering 10 years ago
scrawl c4452afd89 Inventory item picking 10 years ago
scrawl 72c1f37527 Port CharacterPreview 10 years ago
Rohit Nirmal 997347b01e Silence -Wreorder warnings. 10 years ago
dteviot e197f5318b fixing MSVC 2013 warning C4244: & C4305
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
scrawl 1bd3ab8a2d Fix torch animation playing when torch is hidden (Fixes #2236) 10 years ago
scrawl 2e5e7370ba Adjust default angle, FOV and viewport of character preview (Fixes #2220) 10 years ago
scrawl 8bc7eb5530 PlayGroup: Don't loop animations with no loop keys (Fixes #2223) 10 years ago
scrawl f931ba2efc Fix some static analysis issues (coverity) 10 years ago
scrawl d034a079e6 Allow equipping twohanded weapon and shield at the same time (Fixes #1785)
The shield can be equipped, meaning armor rating and item enchantments apply, but can not be blocked with.
10 years ago
scrawl fee08f97ed Fix crash in character preview for non-existing meshes (Fixes #2128) 10 years ago
Lukasz Gromanowski e1663de7cf Fixes #1887: Equipped items do not emit sounds
Added getSound() method to MWClass class and implementation
into Light class.

Also added additional bool parameter responsible for enabling/disabling
of playing items sounds into NpcAnimation class constructor.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
10 years ago
scrawl 7252cb63a6 Fix cppcheck issues 10 years ago
scrawl 94c2517d67 Fix race preview crash (Fixes #1808) 11 years ago
scrawl 025f50a2df Improve performance of inventory window resize (don't update selection buffer unnecessarily) 11 years ago
scrawl 4a26dcb2ad Avoid calling RenderTarget::update from within loadResource 11 years ago
scrawl c6bf9dfbfb Add ManualResourceLoader for character previews (Fixes #1752) 11 years ago
Emanuel Guevel 1e4a854433 Remove static method MWWorld::Class::get(&Ptr)
It was just adding a level of indirection to Ptr.getClass().
All the call were replaced by that instead. The number of lines changed
is important, but the change itself is trivial, so everything should be
fine. :)
11 years ago
scrawl edb5a54092 Include some more required Ogre headers explicitely. 11 years ago
scrawl 8aed4fcfa4 Correction for marksman weapon inventory preview 11 years ago
scrawl 5b076aa570 Revert "Bug #1074: Inventory paperdoll obscures armour rating"
This reverts commit b017a3be3e.
11 years ago
scrawl 4ec86d1c68 Bug #1147: Fix the inventory preview pose used for ranged weapons 11 years ago
scrawl 589fbbd871 Issue #777: Create InventoryStore for creatures with weapons/shields 11 years ago
scrawl aa855e9524 Include some required Ogre headers explicitely 11 years ago
scrawl 098f9712f1 Add getPlayerPtr() utility method. Reduces dependencies a lot. 11 years ago